I tried putting this inside my controller:
def goodbye
@link = Link_to “goodbye!”, :action =>“goodbye”
end
and display it in my views calling the @link variable.
Of course it doesn’t work.
Why?
Thanks
I tried putting this inside my controller:
def goodbye
@link = Link_to “goodbye!”, :action =>“goodbye”
end
and display it in my views calling the @link variable.
Of course it doesn’t work.
Why?
Thanks
Dominic S. wrote:
I tried putting this inside my controller:
def goodbye
@link = Link_to “goodbye!”, :action =>“goodbye”
endand display it in my views calling the @link variable.
Of course it doesn’t work.
Why?
Thanks
You need this function in your helpers so it will be available in your
views and then you can use as
<%= goodbye %>.
Gokhan
www.sylow.net
On 6/7/06, Gokhan A. [email protected] wrote:
You need this function in your helpers so it will be available in your
views and then you can use as
<%= goodbye %>.
That just moves the NameError to a different place in the code.
Hint: ruby is case sensitive.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs