search for: flash_messages

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

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 hav...
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 :update...
2007 Jan 20
1
Not appear error message
I have a partial form "empresa". In new.rhtml of "empresa", I call 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
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 that...
2006 Sep 27
0
To render or redirect
Hi guys, I have been using this code for a while and on the whole it works well. # Display the search page def search @breadcrumb_title = ''Search'' if request.get? @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?
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