-
Website
http://www.brodwall.com/johannes/blog/ -
Original page
http://www.brodwall.com/johannes/blog/2008/01/28/rails-intro-2-one-to-many-relationships/ -
Subscribe
All Comments -
Community
-
Top Commenters
-
eirikma
2 comments · 1 points
-
Affordable SEO Services
1 comment · 1 points
-
andreb
1 comment · 1 points
-
thommyb
1 comment · 1 points
-
Andy Palmer
1 comment · 1 points
-
-
Popular Threads
app/controllers/comments_controller.rb:89: formal argument cannot be an instance variable
def find_article
@article = Article.find(params[:article_id])
end
I don't get the same error, and I'm wondering if you might've made a mistake in copying the code. The error message is something you get if you say
def method(@param) ...
Or
do |@param| ...
or
{ |@param| ...
Is it possible that you have an extra "(" after "find_article"?