I have created some radio boxes as follows:
<% f.radio_button :usertype, "false" %>False
<% f.radio_button :usertype, "true" %>True
where usertpe is a boolean in the db
I want to be able to create a default selection and I want to validate
the options and ensure that for whatever reason there is always a check
in one of the boxes...now I know a proper radio box config will always
have one option selected. How do I validate? For example
validates_prescence_of: usertype?
--
Posted via http://www.ruby-forum.com/.
--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
first sorry for my poor english.I have a question about sqlite3-ruby on
linux.
I have compiled and installed the ruby 1.9.1, sqlite3 and sqlite3-ruby on
redhat enterprise version.
but when I use irb and import the sqlite3 module, it will throw the error,
what's the matter.
irb(main):001:0> require 'sqlite3'
LoadError: libsqlite3.so.0: cannot open shared object file: No such file or
directory -
/usr/ruby1.9.1/lib/ruby/gems/1.9.1/gems/sqlite3-ruby-1.3.1/lib/sqlite3/sqlite3_native.so
from
/usr/ruby1.9.1/lib/ruby/gems/1.9.1/gems/sqlite3-ruby-1.3.1/lib/sqlite3.rb:6:in
`require'
from
/usr/ruby1.9.1/lib/ruby/gems/1.9.1/gems/sqlite3-ruby-1.3.1/lib/sqlite3.rb:6:in
`rescue in <top (required)>'
from
/usr/ruby1.9.1/lib/ruby/gems/1.9.1/gems/sqlite3-ruby-1.3.1/lib/sqlite3.rb:2:in
`<top (required)>'
from (irb):1:in `require'
from (irb):1
from /usr/ruby1.9.1/bin/irb:12:in `<main>'
thanks
----hywhy
--
View this message in context: http://old.nabble.com/question-about-sqlite3-ruby-on-linux-tp29317264p29317264.html
Sent from the RubyOnRails Users mailing list archive at Nabble.com.
--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Hahaha!
Search the list, and you'll notice that people have already fallen into
this trap.
Wait 'til Rails 3 AND Ruby 1.9.2 get released to jump to Rails+Ruby1.9
Stick to Rails 2.3.8 and Ruby 1.8.7 until then.
--
Posted via http://www.ruby-forum.com/.
--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.