[Rails] What's the best way to embed a form?: Header showing
multiple times?
softwareengineer 99
softwareengineer99 at yahoo.com
Sun Feb 5 17:45:54 GMT 2006
I can't say thanks enough for you continung to assist me.
I have no idea how the space got in the message. I checked with my code and there is no space or I edited it out earlier:
<%= render_component :controller => "member", :action => "login_form"%>
I spent all night trying to figure it out but to no avail.
Am I right in assuming that a method and a corresponding .rhtml file is all that's needed to create an action?
Frank
Xavier Noria <fxn at hashref.com> wrote: On Feb 4, 2006, at 23:53, softwareengineer 99 wrote:
> Thank you Xavier for your reply:
>
> Here is the views/member/login_form.rhtml (edited for html)
> <%= head_helper %>
> <%= start_form_tag_helper %>
> <%= form_input :text_field, "login", :size => 30 %>
> <%= form_input :password_field, "password", :size => 30 %
> >
> <%= button_helper 'login' %>
> <%= link_helper 'login_signup', :action => 'signup' %> |
> <%= link_helper 'login_forgot_password', :action =>
> 'forgot_password' %>
> <%= end_form_tag %>
>
> The following is the line in views/tags/show.html
>
> <%= render_component :contro ller => "member", :action =>
> "login_form"%>
There's a spurious space in ":contro ller".
_______________________________________________
Rails mailing list
Rails at lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails
---------------------------------
Brings words and photos together (easily) with
PhotoMail - it's free and works with Yahoo! Mail.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060205/e928544d/attachment.html
More information about the Rails
mailing list