now i have this:
1)
@user.save
if @user.errors.empty?
flash[:notice] = "Thanks for signing up! Please check your email to
activate your account."
else
redirect_to signup_url
end
2)
validation via model are al set
3)
<hr>
<% flash.each do |key, msg| %>
<%= content_tag :div, msg, :class => "flash", :id => key %>
<% content_tag :script, :type => "text/javascript" do %>
$('<%= key %>').style.display = 'none';
new Effect.Appear('<%= key %>', {duration: 3});
<% end %>
<% content_tag :script, :type => "text/javascript" do %>
setTimeout("new Effect.Fade('<%= key %>');", 10000);
<% end %>
<% end %>
<hr>
<%= yield :layout %>
but the only thing i see is this:
'Input
literally, the string "'Input" is being displayed between the hr tags...
im confused
On Mon, Oct 25, 2010 at 11:56 AM, radhames brito <[email protected]> wrote:
> flash[:error] [email protected]
>
>
> I think this will cause an error since you are passing a collection to a
> hash that takes a string, let the form helper handle this and dont use many
> flashes with the loop or you will only see the last flash set
>
> --
> 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]<rubyonrails-talk%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
--
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.