search for: post_titl

Displaying 6 results from an estimated 6 matches for "post_titl".

Did you mean: post_title
2006 Apr 02
2
Focus on ajax newly-created form element
I have an ajax method that creates a new form. I want one of the input boxes to be focused when the form gets displayed. So in my inline RJS I have page << "document.getElementById(''post_title'').focus();" The input box is being created with <%= text_field ''post'', ''title'' %>, so the ID should end up being ''post_title'' - FireFox''s DOM inspector confirms it. However the text field isn''t getting fo...
2006 May 18
2
attempt to override the ''tag'' method
...g(name, options = nil, open = false) breakpoint orig_tag(name, options, open) end end end end I then have a view with the following <h1>New post</h1> <%= start_form_tag :action => ''create'' %> <p><label for="post_title">Title</label><br/> <%= text_field ''post'', ''title'' %></p> <%= submit_tag "Create" %> <%= end_form_tag %> Now here is my problem. Each of these tag helpers calls the tag method to created it''...
2006 Jul 18
2
A quick question on forms
...m is if I change it from text_field to text_field_tag that part of the form stops functioning. It seems like a silly question, but its been driving me crazy. Any help would help. Steve. <%= error_messages_for ''post'' %> <!--[form:post]--> <p><label for="post_title">Title</label><br/> <%= text_field ''post'', ''title'' %></p> <p><label for="post_author_name">Author''s Name</label><br/> <%= text_field ''post'', ''author_name...
2005 Oct 24
3
Unable to use forms after login generator
...see where you''re working with an object that could be nil. Investigate your methods and make sure the object is what you expect! Extracted source (around line #1): 1: <%= error_messages_for ''post'' %> 2: 3: <!--[form:post]--> 4: <p><label for="post_title">Title</label><br/> I wish to know how I can keep the nil object (which seems to be the issue) from showing up. Thank you. -Bryan-
2007 Jul 31
0
Edit not working with named routes
...;h1>New Post</h1> <% form_for(:post, @post, :url => post_url(@post), :html => {:method => ''put''}) do |f| %> <%= render :partial => "form", :object => f %> <% end %> And the form partial... <p> <label for=''post_title''>Title</label><br /> <%= form.text_field :title %> </p> <p> <label for=''post_permalink''>Permalink</label><br /> <%= form.text_field :permalink %> </p> <p> <label for=''post_abstract...
2006 May 22
6
how HTML_Option works?
Hi all, all the form helpers can take a serie for options but I cant find any documentation about them. Any one can point me toward one? Or at least tell me how I can for example add a function that would be call with the onblur event from a input box? Thanks! -- Posted via http://www.ruby-forum.com/.