Displaying 4 results from an estimated 4 matches for "railsdiary".
Did you mean:
railsday
2006 Mar 07
1
has_and_belongs_to_many tags
...+
@params[''searchtags''] + ''%'' ])
My enviroment:
I''ve got a table called tags, and a table called pages, both with a
relationship of has_and_belongs_to_many. I also have a table called
pages_tags. Basically my tables are set up like here:
http://www.railsdiary.com/diary/tagging_has_and_belongs_to_many
Would appreciate some help on how I can reference a tag through a Page.
--
Posted via http://www.ruby-forum.com/.
2006 Jan 05
0
render :partial, accentuated characters and Ajax preview
...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 text? I didn''t find it in
the doc.
Any idea?
TIA
Alain Ravet
[1]: based on http://railsdiary.com/diary/ajax_markdown_preview
--
Posted via http://www.ruby-forum.com/.
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