Hi
My problem is the following.
I have to describe a sort of a “news” page. (I just have to give the
basic architecture)
I want to refresh a
my code looks like this :
<%= link_to_remote “sports”,
:update => ‘news_div’,
:url => {:action => “getinfo”} %>.
I have a “getinfo” method in my controller to get the news and fill the
div. But how do I pass an argument to “getinfo” to get specific news?
I would like to do for example in pseudocode :
getinfo(“sports”)
getinfo(“international”)
getinfo(“finance”)
Basicaly I want to pass the name of the link as argument to the
“getinfo” method.
can anyone show me:
the syntax for my “link_to_remote” link and the syntax for the getinfo
method of my controller so that it allows to take an argument?
this would be a great help !
thanx