search for: flash_messag

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

Did you mean: flash_message
2006 Mar 08
2
RJS - page object in helpers?
Hello, I am using RJS and Edge Rails and I was wondering if the page object should be available in helpers also. For example if I have a helper function def update_flash_messages page.replace_html ''flash_messages'', (show_flash_messages :textilize => true) page.visual_effect ''flash_messages'', :appear end and then in my RJS files I call update_flash_messages But right now the above code _doesn''t work_, rather I h...
2009 Oct 07
2
Rails, flash, function and parameter
Hi, I try do update the flash on my page with ajax. I have this on my layout : <div id="flash_messages"> <%= render :partial => ''layouts/flash'' %> </div> I have this on my ApplicationHelper : def reload_flash page.replace "flash_messages", :partial => ''layouts/flash'' end and I try do that on my controller : render :updat...
2007 Jan 20
1
Not appear error message
...the partial form of "usuario". Well, it is happening the following: When save empresa, and stop in validates, as much in "empresa" how much "usuario", appear only error message of "empresa", and not of "usuario". Because this happening? ps1.: I use flash_message instead of flash[:notice] ps2.: The "validates" of "usuario" is functioning, does not only appear msg. If save only usuario, in new.rhtml of "usuario", the msg`s appearl, only when call in partial form of "empresa" _form Empresa ----------------------------...
2010 Aug 17
3
Rails 3 flash message problems
The following code in my application_helper.rb class either eats the flash message or escapes it and does not display properly: # Outputs the corresponding flash message if any are set def flash_messages messages = [] %w(notice warning error).each do |msg| messages << content_tag(:div, content_tag(:p, html_escape(flash[msg.to_sym])), :class => "message #{msg}") unless flash[msg.to_sym].blank? end messages end I am not sure how to make it html_safe so th...
2006 Sep 27
0
To render or redirect
...@home_search = HomeSearch.new else request.post? @home_search = HomeSearch.new(params[:home_search]) @search_conditions = Home.search_homes(params).to_sql if @home_search.valid? @homes = Home.find(:all, :conditions=> (@search_conditions)) if @homes.empty? flash_message ''Your search has returned no results. Please revise your search critera.'' render :action => ''search'' else @record_count = Home.count(@search_conditions) render :action => ''search_results'' end...
2006 Jan 31
11
ez_where plugin updated features.
Friends- I wanted to let people know that there is a new experimental release of this plugin. I would love feedback on syntax and features. There is now a full test suite with fixtures that covers all the available syntax. Look at the test suite for more syntax possibilities. There have been many additions since my last release. Fabien Atelier has been working on this with me and has