Handling multiple models in a single form is much easier with the accepts_nested_attributes_for method. See how to use this method to handle nested model fields.
If you want to create a model without a database backend, you simply need to define a couple methods in the model like I show in this episode.
In this screencast we'll cover using variables, mixins and operations with LESS while building the header for the 'Flitter' front end. Watch this screencast and more at TeachMeToCode.com
In this screencast we'll cover the basics of setting up a LESS file to compile into CSS as we provide an HTML front end to Flitter, a Ruby on Rails Twitter clone.
Writing tests are great for helping you design and think out your code, and the bonus is you end up with a test suite to aide in fighting against regressions. Why? It’s embarrassing when your JavaScript doesn’t work in production.
But how do you get started with testing JavaScript? How do you make it easy? I mean, so easy that you’d feel stupid to not write tests?
In case you are following the 'Creating a Twitter Clone with Rails' screencast series, the latest release is now out. Continue learning how to create a 'Flitter' application using Rails at
In this first episode I introduce three tools:
Bullet – Help you reduce the number of queries with alerts (and growl).
Rails Indexes – Rake tasks to find missing indexes.
Scrooge – SQL query optimizer, so you query for only what your page needs.
Don't want to take the time to create a layout for your new Ruby on Rails application? Don't worry. Use the Themes plugin! In this screencast, I show you how to easily add a layout with built-in menus to your existing Rails application using only 1 line of code.
Learn about some of the more advanced functionality of Formtastic including handling many-to-many associations, required fields, and styling.
In this screencast, we continue our challenge of creating a Twitter clone called 'Flitter' using Ruby on Rails. We learn how to use jQuery to create a countdown for the text area box. We also set up adding and removing friends via the interface. Oh... you hear my baby cry and my sister-in-law call. Fun stuff :D