Try request.session_options[:id]
--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscr...@googlegro
I fixed it, I was missing an tag in my edit code for the
page that was not working.
--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group,
I tried what you suggested and I got the error message with
validates_format_of where validates_length_of worked, and length_of didn't
work where my format_of wasn't working. So it looks like the "somwhere
else" is significant, but I cant see any obvious differences between the
two models, any
I'm using validates_format_of and the validation I want to do works, but I
can't get an error message to be displayed if the data is invalid:
validates_format_of :mobile, :with => /\A[\+0-9]+\Z/, :message => " - Wrong"
I have another validation some where else that does display the error
message
I have validates_format_of :name, :with => *my regex*, :message => "That's
wrong"
The validation works but the message does not get displayed when the user
enters invalid data.
Does anyone have any ideas how to fix it?
Thanks.
--
You received this message because you are subscribed to the Goog
5 matches
Mail list logo