search for: railsdiari

Displaying 4 results from an estimated 4 matches for "railsdiari".

Did you mean: railsdiary
2006 Mar 07
1
has_and_belongs_to_many tags
I''m trying to create a search where I can find pages by their tag name. Here''s a sample of my code (not working). @tags = Page.find(:all, :conditions => ["#{:tag.name} LIKE ?",''%'' + @params[''searchtags''] + ''%'' ]) My enviroment: I''ve got a table called tags, and a table called pages, both with a
2006 Jan 05
0
render :partial, accentuated characters and Ajax preview
Hi all, I added a textile preview Ajax - 1 - button to an edit page, and accentuated characters now show up corrupted (but only in the preview area) As - they are displayed correctly in the rest of the page, - they are still correct when they reach the ''preview'' controller , I guess "render :partial" is the culprit. Is there a way to tell render how to render
2005 Dec 27
1
Form Validation?
How I can I implement form validation easily to helpers such as text_field_tag? If I specified a name of ''myinput'' how would I notify rails that ''myinput'' is erroneous? -- Posted via http://www.ruby-forum.com/.
2007 Dec 14
3
Preview Message Before Saving?
Hi all, I''m sure this is really simple, but I can''t seem to figure it out. I want to let users preview their messages before submitting. Something in the form of: def new @post = Post.new end def preview #preview message text here #@post = Post.new(params[:post]) <--? end def create #save message on user''s confirmation ... @post.save end Have any