# Help creating for for my auth on rails. please

**URL:** <https://www.ruby-forum.com/t/help-creating-for-for-my-auth-on-rails-please/132229>\
**Category:** Rails\
**Created:** [March 18, 2008, 4:59am UTC](https://www.ruby-forum.com/t/help-creating-for-for-my-auth-on-rails-please/132229 "2008-03-18T04:59:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [March 18, 2008, 4:59am UTC](https://www.ruby-forum.com/t/help-creating-for-for-my-auth-on-rails-please/132229/1 "2008-03-18T04:59:24Z")

</div>

I’m following this howto below:,  
[http://wiki.rubyonrails.com/rails/pages/A\_quick\_and\_dirty\_homemade\_authentication\_solution](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…

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [March 18, 2008, 9:12am UTC](https://www.ruby-forum.com/t/help-creating-for-for-my-auth-on-rails-please/132229/2 "2008-03-18T09:12:31Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [March 18, 2008, 9:14pm UTC](https://www.ruby-forum.com/t/help-creating-for-for-my-auth-on-rails-please/132229/3 "2008-03-18T21:14:16Z")

</div>

> 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.
