From: Peter Barry Date: 2005-10-18T20:46:17+09:00 Subject: Ruby On Rails, NoMethodError 'rewrite' --=_alternative 0040A1B66525709E_= Content-Type: text/plain; charset="US-ASCII" Good day, Not sure if i should be posting rails related problems here, but seems other people do , but feel free to point me to a better rails forum. Not sure what the cause of the problem is, i am not personally calling a method rewrite in my code but i guess the framework is. I have been working from the scaffold code and editting the views/model and controllers to suit my application. Any ideas where to look for the problem ? Cheers By the way the url is my model class not the url/ url_helper in the rails framework, could this be a problem? NoMethodError in Urls#new Showing /urls/new.rhtml where line #3 raised: undefined method `rewrite' for # Extracted source (around line #3): 1:

New url

2: 3: <%= start_form_tag :action => 'create' %> 4: <%= render_partial 'form' %> 5: <%= submit_tag "Create" %> 6: <%= end_form_tag %> C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/base.rb:1203:in `method_missing' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.rb:440:in `url_for' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_view/helpers/url_helper.rb:12:in `send' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_view/helpers/url_helper.rb:12:in `url_for' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_view/helpers/form_tag_helper.rb:25:in `start_form_tag' Peter Barry skype: hairymail YIM: hairy_mail Remember from your perspective, you are always on top of the world. --=_alternative 0040A1B66525709E_=--