Colin Law wrote in post #964106:
> On 26 November 2010 14:22, Ben Woodall <lists@ruby-forum.com> wrote:
>>
>>
>> out of the _form.html.erb for edit makes it work btw. I guess my
>> problem is with the NoMethodError in Knodes#new
>
> I am a bit confused about you naming for Knodes. In an earlier post you
> have
> def new
> @knodes = Knodes.new
> end
> which suggests that your model is class Knodes, and you seem to be
> using knodes for both the singular and plural. Rails can get confused
> if you do not follow the conventions, though it is possible to work
> around this. I would have expected, though, to see model Knode in
> model/knode.rb, and controller KnodesController in
> controllers/knodes_controller.rb. Whether this is part of your
> problem I do not know.
>
> Colin
Yeah...this is only my second rails project and I thinking that this is
my problem. I screwed up on the naming conventions. Honestly, if you
were to just tell me "this is your problem, fix it cuz there's nothing
else we can help you with" i'd pretty much understand. I think i'm
going to have to start over on this and change the names around
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
No comments:
Post a Comment