Help creating for for my auth on rails. please

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…

On Mar 17, 2008, at 8:58 PM, rek2 wrote:

from there,

Thanks! I really banging my head with this one…

<% form_for(:login, :url => {:controller => ‘login’, :action =>
‘check’}) do |f| -%>

Name: <%= f.text_field :n %>

Name: <%= f.text_field :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.

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.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs