Search
Categories
- Deployment (4)
- Development (63)
- Gems and Plugins (4)
- News (2)
- Projects (4)
- Testing (3)
Most Popular Tags
activerecord architecture collections css database date and time debugging design design patterns DRY ebooks fixtures floating-point numbers formatting framework front page global variables helpers I18n introductory launchpad meta-information migrations model multiplicity mvc MySQL partials production rails 2.0 rails 2.1 Rails 2.2 regular expressions routing rss ruby security setup sql UI upgrading user management validation xml xml builder
Tag Archives: mvc
Passing Controller/View Data with Instance Variables
In Rails, instance variables are preceded by the @ symbol. Instance variables in controllers are automatically accessible in view pages. In this way, Rails ties together the model, view, and controller aspects. The result is that you access model data and store it in instance variables in your controller, then display it through using those variables in your view code. Continue reading
Adding Stylesheets
How can you add a stylesheet to your Rails project? The process is relatively easy. First, add the stylesheet file to the /public/stylesheets folder. Next, link it using the stylesheet_link_tag helper–it takes the name of the stylesheet (no extension). That’s it! Continue reading