On Jun 25, 11:05 am, Vikas Gholap
<rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:> Hello all,
>
> I confused about how to add HTML control like anchor tag
<a></a> to
> flash[:notice].
The flash is just a hash that knows to remove items automatically, so
this question is entirely down to how you use the flash in your app.
For example if you display the flash by doing
<%= h flash[:notice] %> then any html content in the flash will be
escaped.
Fred
>
>
This is my code>
> flash[:notice]= "You are all ready subscribed to<a
>
href=''#{show_subscription_path(@user)}''>#...@subscription.tariff_plan_id}</a>
> service. Please <a href=''#{unsubscribe_path(@user,
> @subscription.id)}''>Unsubscribe</a> to create new
subscription."
>
> and shows output as ==>
>
> You are all ready subscribed to<a
>
href=''/businesses/bounce/subscriptions/''>premium_yearly</a>
service.
> Please <a
>
href=''/businesses/bounce/subscriptions/unsubscribe/33''>Unsubscribe</a>
> to create new subscription.
>
> what is the correct way of doing this.
>
> please suggest solution
>
> thanks,
> Vikas
> --
> Posted viahttp://www.ruby-forum.com/.