search for: front_controller

Displaying 3 results from an estimated 3 matches for "front_controller".

2006 Jul 02
5
Pretty URLs -> Routes
Hi I am having issues with getting my pretty urls to work. routes.rb: map.connect '':user'' , :controller => ''front'' , :action => ''list'' , :filter => ''user'' front_controller.rb: def list @advert_pages, @adverts = paginate :adverts, :per_page => 10 @user = User.find(params[:id]) @userAdverts = @user.adverts.find(:all) end http://localhost:3009/dawie where dawie is one of the users gives me an error: Couldn''t find User without an ID which makes s...
2006 Mar 31
1
Ruby 1.8.4 upgrade screws up ActiveRecord
...ctive_record/base.rb:1017:in `construct_finder_sql'' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/base.rb:924:in `find_every'' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/base.rb:381:in `find'' #{RAILS_ROOT}/app/controllers/front_controller.rb:14:in `index'' Line 14 in front_controller.rb is my first ActiveRecord call. Am I doing something wrong or should I be submitting a ticket? I can''t find anything anywhere about this so I''m guessing its something I did. Thanks in advance! -- Posted via http://www....
2006 Jun 26
9
Form Mail
What is the most RoR friendly way of making a form mailer similar to this php one? http://tips-scripts.com/?tip=form_mail#tip Or is it easier just to use the php with RoR? -- Posted via http://www.ruby-forum.com/.