Ruby On Rails, NoMethodError 'rewrite'

P

Peter Barry

--=_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 #<Url:0x39c0f38>
Extracted source (around line #3):
1: <h1>New url</h1>
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_=--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,233
Members
46,820
Latest member
GilbertoA5

Latest Threads

Top