if the
attribute is blank (default is false).
http://api.rubyonrails.org/classes/ActiveRecord/Validations/ClassMethods.html#M001639
You will probably want to use allow_blank because if you create an
email via params it could come back as an empty string.
--
Robert Zotter
Zapient, LLC
Ruby on Rails
Nick,
The :except and :only routing options are only available on Edge Rails
(Rails 2.2.1 or Rails 2.2 RC2) at this time. Make sure you are running
the correct version.
Cheers
--
Robert Zotter
Zapient, LLC
Ruby on Rails Development and Consulting
http://www.zapient.com
http
') { ... }
Or you could set some arbitrary attribute on the div and check it
ie...
div id='show_archive' expanded='true' %/div
if ($('show_archive').readAttribute('expanded') == 'true') { ... }
Cheers.
--
Robert Zotter
Zapient, LLC
Ruby on Rails Development and Consulting
http://www.zapient.com
http
/Array.html#M002232
Cheers
--
Robert Zotter
Zapient, LLC
Ruby on Rails Development and Consulting
http://www.zapient.com
http://www.fromjavatoruby.com
On Nov 6, 8:01 pm, Scott Kulik [EMAIL PROTECTED]
wrote:
here is some of the code:
@items_all = Item.find(:all)
for item in @items_all
I probably should mention the best way to do what you are trying to
accomplish would be:
@items_missing_images = @items_all.reject { |item| FileTest.exist?
(item.image_name) }
--
Robert Zotter
Zapient, LLC
Ruby on Rails Development and Consulting
http://www.zapient.com
http
autocompleter wiki, it has all the
information you will need.
http://github.com/madrobby/scriptaculous/wikis/autocompleter-local
Cheers
--
Robert Zotter
Zapient, LLC
Ruby on Rails Development and Consulting
http://www.zapient.com
http://www.fromjavatoruby.com
On Nov 5, 9:03 am, Sam Kong [EMAIL
Typo
...maybe there is one someone -- ...maybe there is one somewhere.
On Nov 5, 9:24 am, Robert Zotter [EMAIL PROTECTED] wrote:
Sam,
I am unaware of any plugins for this, maybe there is one someone.
Fortunately though It is trivial to implement with the Scriptaculous
library.
Basically
Try this.
evt.start_time.in_time_zone('Arizona')
Check out
http://api.rubyonrails.org/classes/ActiveSupport/CoreExtensions/Time/Zones.html.
And http://api.rubyonrails.org/classes/ActiveSupport/TimeZone.html
lists all the available timezones.
--
Robert Zotter
Zapient, LLC
Ruby on Rails
Charles,
I am not sure what you want to accomplish. If you want to display the
time you have listed in your database you can always use the
following.
%= h evt.start_time.to_s(:db) %
Is this what you are looking for?
--
Robert Zotter
Zapient, LLC
Ruby on Rails Development and Consulting
http
the :skip_instruct = true option when you are
creating the xml for your associations so it does not add the XML
declaration ?xml version=1.0 ...
Cheers.
--
Robert Zotter
Zapient, LLC
Ruby on Rails Development and Consulting
http://www.zapient.com
http://www.fromjavatoruby.com
On Oct 28, 8:16 am, Marcelo
respectively which are passed in during instantiation.
Cheers
--
Robert Zotter
Zapient, LLC
Ruby on Rails Development and Consulting
http://www.zapient.com
http://www.fromjavatoruby.com
On Oct 27, 5:31 pm, Danimal [EMAIL PROTECTED] wrote:
Hello!
Sometime ago I ran across a webpage where
Ahhh I see. Sorry, Im not familiar with that wiki you are talking
about. However I can solve your bookmarking problem if you happen to
use Firefox http://www.foxmarks.com/ :)
Good luck finding that wiki.
--
Robert Zotter
Zapient, LLC
Ruby on Rails Development and Consulting
http
Soh,
Not sure why you are not able to access the attributes in the use case
but can I ask why you are not using the dynamic find_by methods ie
User.find_by_username('kena') ?
--
Robert Zotter
Zapient, LLC
Ruby on Rails Development and Consulting
On Oct 27, 6:49 pm, Soh Dubom [EMAIL PROTECTED
'somekey' is not the same as the key :somekey
hash = HashWithIndifferentAccess.new({:somekey = 'testing'})
hash[:somekey]
= 'testing'
hash['somekey']
= 'testing'
Here the key 'somekey' and :somekey are the same.
Understand?
--
Robert Zotter
Zapient, LLC
Ruby on Rails Development
14 matches
Mail list logo