Do you know if exist a method to rescue the variable value pass to a
page .rhtml?
Something sucj as “_GET” in PHP?
Do you know if exist a method to rescue the variable value pass to a
page .rhtml?
Something sucj as “_GET” in PHP?
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
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