[Rails] Re: Rails session ID

2012-08-14 Thread tomkins
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

Re: [Rails] validates_format_of :message not working, validates_length_of :message is working

2012-08-14 Thread tomkins
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,

Re: [Rails] validates_format_of :message not working, validates_length_of :message is working

2012-08-14 Thread tomkins
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

[Rails] validates_format_of :message not working, validates_length_of :message is working

2012-08-14 Thread tomkins
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

[Rails] validate_format_of message

2012-08-10 Thread tomkins
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