Colin Law wrote in post #1146617:
>
> So your problem is not creating a view without a model, it is invoking
> an action from a view.  It is no good just saying that you can't call
> the action, what error are you getting?  It does not look to me as if
> that line is valid, look at the parentheses.  Also the second
> parameter should be the url.  Check the docs for link_to.
>
You were right the issue came from the link_to structure. What is 
working for is

<%= link_to "Terminé", controller: "pages", action: "finished"%>

And I had also a problem with my variables which are not initialized 
because I have forgotten to put before_filter :inivariable at the 
beginning of my controller where inivariable is a methode where y define 
my variables ex: @articles= Article.find_by_id(1)
>>>
>>> I believe railstutorial uses rails 4.
>
> https://github.com/railstutorial/sample_app_rails_4
>
Thanks for the link I was looking the rails 3 version.

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/0df4e9abaaa97118c4b70aa3c25b0ae5%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to