I read the following tag in teh Beast example
<%= submit_tag’Login’, :or => link_to_function(‘forgotten password’,
“$(‘reset-password’).toggle();”) %>
I understand the link_to_function, but what is this :or parameter used
for ?
the link doesn’t appear, so it cannot be used…
thanks for your lights
kad
Kad K. wrote:
I read the following tag in teh Beast example
<%= submit_tag’Login’, :or => link_to_function(‘forgotten password’,
“$(‘reset-password’).toggle();”) %>
I understand the link_to_function, but what is this :or parameter used
for ?
the link doesn’t appear, so it cannot be used…
thanks for your lights
kad
… I believe it should be cut in two… but this is the actual code in
the login form…
which generates
or reset password
don’ understand why ?
Rick O. wrote:
On 6/26/07, Kad K. [email protected] wrote:
return false;">reset password
don’ understand why ?
It’s a custom mod josh made to #submit_tag in:
http://svn.techno-weenie.net/projects/beast/trunk/app/helpers/application_helper.rb
–
Rick O.
http://lighthouseapp.com
http://weblog.techno-weenie.net
http://mephistoblog.com
Thanks Rick … I forgot to look into this major helper… ;-))
this app was my ‘tutorial’ in moving to RESTFul app… I was
concentrated on RESTFul aspect and forgot the Rails basics…