Displaying 2 results from an estimated 2 matches for "rockatansky".
2006 Jul 12
3
Most efficient way to "increment" a string?
I have members with usernames. In the event that a new member requests
an already-existing username, I''d like to automatically "increment" a
next-best string:
johnny
johnny1
johnny2
Knowing RoR, my gut tells me there''s some elegant, concise way to do
this, but I can''t think of it. Any advice?
--
Posted via http://www.ruby-forum.com/.
2006 Jun 04
4
"can''t convert Magick::GravityType into Integer"
Am having trouble with file_column -- on certain crop operations, it
says:
A TypeError occurred in [controller]#[action]:
can''t convert Magick::GravityType into Integer
[RAILS_ROOT]/vendor/plugins/trunk/lib/magick_file_column.rb:90:in
`crop''
Any advice? Here''s the backtrace:
[RAILS_ROOT]/vendor/plugins/trunk/lib/magick_file_column.rb:90:in
`crop''