On Nov 1, 11:50 am, Christian Fazzini <[email protected]> wrote: > Arailsdemo, I dont think the sanitize helper works in the controller > level. I get the error: undefined method `sanitize > > Marnen, please be more specific! > Look at where you're displaying the contents of the flash; you may need to either not call h() or use the raw helper to indicate that the contents of the flash are safe to display
Fred > On Oct 31, 12:09 pm, "Arailsdemo A." <[email protected]> wrote: > > > > > Try this > > > class YourController < ApplicationController > > include ActionView::Helpers::SanitizeHelper > > > def your_action > > redirect_to(:back, :notice => sanitize("Photo was successfully > > created. Click <a href='#{url_for artist_photo_path(@photo.artist, > > @photo)}'>here</a> to view it")) > > end > > end > > > If you haven't used the sanitize method before, please read > > thishttp://api.rubyonrails.org/classes/ActionView/Helpers/SanitizeHelper.... > > > before using it. > > > -- > > Posted viahttp://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

