In my model i had used the validation
validates :first_name, :format = {:with = /^[a-zA-Z.\s]*$/
i}, :length = {:minimum = 1, :maximum = 25}, :presence = true
in views
div class=field
%= f.label :first_name %nbsp;
%= f.text_field :first_name %
/div
in the browser i am getting
On 17 January 2012 11:20, Kapil Kaligotla
kapil.kaligo...@magikminds.com wrote:
In my model i had used the validation
validates :first_name, :format = {:with = /^[a-zA-Z.\s]*$/
i}, :length = {:minimum = 1, :maximum = 25}, :presence = true
in views
div class=field
%= f.label
On Tue, Jan 17, 2012 at 3:20 AM, Kapil Kaligotla
kapil.kaligo...@magikminds.com wrote:
validates :first_name, :format = {:with = /^[a-zA-Z.\s]*$/
i}, :length = {:minimum = 1, :maximum = 25}, :presence = true
Your format regex will pass an empty string (), or a string of nothing
but space
On Jan 9, 7:49 am, serpent403 aman.webdra...@gmail.com wrote:
I am getting the below errors whenever i try to start my rails server
(rails s) or install a new gem. Can ne1 tell me how to get rid of
them?
http://blog.rubygems.org/2011/08/31/shaving-the-yaml-yak.html
TL;DR:
gem update --system
thanks, looking into this thread.
On May 7, 5:30 am, Michael Pavling pavl...@gmail.com wrote:
On 7 May 2010 00:49, oren orengo...@gmail.com wrote:
in my update action of Key, if the key has non-valid value object I
see this error message:
Translation values is invalid
why don't I see:
Rob Biedenharn wrote:
If you have 'defaults' instead of :defaults, then
just change it to a symbol and it will do the right thing.
That was the issue, I had defaults instead of :defaults.
Thanks Rob,
-S
--
Posted via http://www.ruby-forum.com/.
On Jan 7, 2009, at 4:53 PM, Shandy Nantz wrote:
I have this app where people can build a profile full of various kinds
of data. The first page that they see when they create their profile
is
a page named 'new'. If you add an id number for the company you work
for
- one that is
It works wonderfully. Thanks again.
On Jan 3, 11:32 pm, Ethan Gunderson twea...@gmail.com wrote:
Awesome, please post back and let us know how it went!
Ethan Gunderson
On Sat, Jan 3, 2009 at 10:29 PM, cutegirl wei.w...@gmail.com wrote:
Thanks for the help. I will try the link you
What OS are you trying to install on?
Ethan Gunderson
On Sat, Jan 3, 2009 at 1:21 PM, cutegirl wei.w...@gmail.com wrote:
After I entered the command gem install rails --include-dependencies
for a while, an error message ERROR: while executing gem...
(Zlib::BufError) buffer error. How can
Windows XP
On Jan 3, 6:37 pm, Ethan Gunderson twea...@gmail.com wrote:
What OS are you trying to install on?
Ethan Gunderson
On Sat, Jan 3, 2009 at 1:21 PM, cutegirl wei.w...@gmail.com wrote:
After I entered the command gem install rails --include-dependencies
for a while, an error
I'm not sure what guide you followed, but this is the one I use for all of
my Windows installs and it seams to work everytime.
http://wiki.rubyonrails.org/rails/pages/RailsOnWindows
Ethan Gunderson
On Sat, Jan 3, 2009 at 9:21 PM, cutegirl wei.w...@gmail.com wrote:
Windows XP
On Jan 3,
Thanks for the help. I will try the link you provided.
On Jan 3, 10:41 pm, Ethan Gunderson twea...@gmail.com wrote:
I'm not sure what guide you followed, but this is the one I use for all of
my Windows installs and it seams to work everytime.
Awesome, please post back and let us know how it went!
Ethan Gunderson
On Sat, Jan 3, 2009 at 10:29 PM, cutegirl wei.w...@gmail.com wrote:
Thanks for the help. I will try the link you provided.
On Jan 3, 10:41 pm, Ethan Gunderson twea...@gmail.com wrote:
I'm not sure what guide you
On 2 Nov 2008, at 18:53, Delirium tremens wrote:
When I run a test, I get the error message: FormatError: Bad data for
Story fixture named two (nil). What should I do about it?
sounds like your stories.yml fixture file has something fishy in it.
Fred
My stories.yml file did not have identation. I added it, with 2
spaces, then it worked!
On 2 nov, 17:08, Frederick Cheung [EMAIL PROTECTED] wrote:
On 2 Nov 2008, at 18:53, Delirium tremens wrote:
When I run a test, I get the error message: FormatError: Bad data for
Story fixture named
Unfortunately, it's not my code that's causing the problem, and I
don't know what is out of date that I need
to update. This all started when I upgraded to RoR 2.x (with
dependencies). I can't do anything about the
code that's in there, except try to figure out how to upgrade whatever
is
'rake' itself is a gem.
Can you try
sudo gem update rake
?
--~--~-~--~~~---~--~~
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
On 30 Sep 2008, at 17:39, Kenneth McDonald wrote:
Heh, rake rails:update gives the same error. Sigh. Advice much
appreciated, though.
Ah well you'll just have to fix the files yourself. replace
occurrences of require_gem with gem
Fred
Apparently I have an old lib of some sort hanging
require_gem 'gemname'
is now to
require 'rubygems'
require 'gemname'
This is how you convert.
--~--~-~--~~~---~--~~
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
19 matches
Mail list logo