Robert Walker wrote:

> just want to match the beginning of the string Rails provides the 
> starts_with method (Ruby 1.9 provides start_with, but not Ruby 1.8). For 
> more complex matches Ruby has excellent regex support. Look at the ~= 
> method.
> 
>  somestuff[:something].starts_with "whatever"


Thanks for the info...

Can "whatever" be a variable?

-- 
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to