I''m following this howto below:, http://wiki.rubyonrails.com/rails/pages/A_quick_and_dirty_homemade_authentication_solution but it does not shows a example form under index.rhtml I created like 20 so far, searched the whole internet and after some examples and even some minor advice from some people still does not work.. I am wondering if someone could just drop me a email with a small simple form that will work with the above code.. so at least I can try something make sure is my problem and then I hack from there, Thanks! I really banging my head with this one.. --~--~---------~--~----~------------~-------~--~----~ 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 Mar 17, 2008, at 8:58 PM, rek2 wrote:> > I''m following this howto below:, > http://wiki.rubyonrails.com/rails/pages/A_quick_and_dirty_homemade_authentication_solution > but it does not shows a example form under index.rhtml > I created like 20 so far, searched the whole internet and after some > examples and even some minor advice from some people > still does not work.. I am wondering if someone could just drop me a > email with a small simple form that will work with the above code.. > so at least I can try something make sure is my problem and then I > hack > from there, > > Thanks! I really banging my head with this one..<% form_for(:login, :url => {:controller => ''login'', :action => ''check''}) do |f| -%> <p>Name: <%= f.text_field :n %> <p>Name: <%= f.text_field :p %> <p><%= submit_tag(''login now!'') %> <% end -%> I can''t vouch for this code -- just wrote it out of the air, but it seems like it would create a form to do what you want. What you need to do is get the form in place, start the server, then tail your log/ development.log. You''ll see the posts from your form as you hit the server and will be able to examine the params and the controller/ action pairs that are being called. Hope this gets you started. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
> <% form_for(:login, :url => {:controller => ''login'', :action => > ''check''}) do |f| -%> > <p>Name: <%= f.text_field :n %> > <p>Name: <%= f.text_field :p %> > <p><%= submit_tag(''login now!'') %> > <% end -%> > > I can''t vouch for this code -- just wrote it out of the air, but it > seems like it would create a form to do what you want. What you need > to do is get the form in place, start the server, then tail your log/ > development.log. You''ll see the posts from your form as you hit the > server and will be able to examine the params and the controller/ > action pairs that are being called. > > Hope this gets you started. >Hi thanks so much, I finally got something working last night.. but this form you posted looks more clean so I may model around it. Thanks. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---