Rescue value


#1

Do you know if exist a method to rescue the variable value pass to a
page .rhtml?

Something sucj as “_GET” in PHP?


#2

Ivan M. wrote:

Do you know if exist a method to rescue the variable value pass to a
page .rhtml?

Something sucj as “_GET” in PHP?

Take the following Rails form URL:

http://server/foo/bar/LikeThis

Where ‘LikeThis’ is the value variable.

And,

<%= params[:id] -%>

… is the content of a app/views/foo/bar.rhtml page.

If you visit that URL in your browser, the output HTML would be:

LikeThis

I hope this is what you mean.
If it is you should buy the excellent Rails book (Agile Web D.
with Rails) to help you get started as this is probably the first thing
you would learn to do.

HTH,
Dominic