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 -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Kad Kerforn 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 <p><input name="commit" type="submit" value="Login" /><span class=''button_or''>or <a href="#" onclick="$(''reset-password'').toggle();; return false;">reset password</a></span></p> don'' understand why ? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 6/26/07, Kad Kerforn <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > Kad Kerforn 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 > > <p><input name="commit" type="submit" value="Login" /><span > class=''button_or''>or <a href="#" onclick="$(''reset-password'').toggle();; > return false;">reset password</a></span></p> > > 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 Olson http://lighthouseapp.com http://weblog.techno-weenie.net http://mephistoblog.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Rick Olson wrote:> On 6/26/07, Kad Kerforn <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: >> > >> return false;">reset password</a></span></p> >> >> 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 Olson > http://lighthouseapp.com > http://weblog.techno-weenie.net > http://mephistoblog.comThanks 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..... -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---