search for: imixaly4

Displaying 4 results from an estimated 4 matches for "imixaly4".

2006 Aug 03
5
DRYing up the view
Hello everyone! I have generic views for CRUD operations For example I render(''shared/list'') from controller shared/list.rhtml ... <% for item in @list %> <tr class="<%= cycle ''list-line-odd'', ''list-line-even'' %>"> <%= render :partial => ''item'', :locals => { :item => item } %>
2006 Aug 14
1
What fields_for really for?
Hello everyone! I have 3 models: === 1 === class Region < ActiveRecord::Base has_many :districts end === 2 === class District < ActiveRecord::Base belongs_to :region has_many :suburbs end === 3 === class Suburb < ActiveRecord::Base belongs_to :district validates_numericality_of :region_id, :only_integer => true end In edit.rhtml for SuburbController I need to specify
2006 Aug 04
4
DRY DRY DRY
Hello everyone! Ive been on rails for the last month or so and really enjoyed this framework. However its very hard to find documentation on how to do things right! For example every beginner after a while realizes that having similar CRUD actions in every controller and views for them is not DRY at all! Few days ago I found http://dereksivers.com/rails-shared-controller.html I quite like his
2006 May 26
2
Rails app fails to start with LoginGenerator
Hi guys I was following this: <a href="http://wiki.rubyonrails.com/rails/pages/LoginGenerator">tutorial</a> and everything was perfect until I run the script. I''ve got: <strong>MissingSourceFile</strong><br /> no such file to load -- user.rb <br /> RAILS_ROOT: script/../config/.. <br /> <pre><code>