Re: using ActiveRecord::Validations::ClassMethods

2009-05-22 Thread David Susco
Thanks guys, That helped get rid of a lot of code. Dave On Thu, May 21, 2009 at 10:22 AM, Magnus Holm judo...@gmail.com wrote: params is simply Rails' version of @input. If you name your keys user[id] and user[name] in the HTML, then @input.user should contain a Hash like { 'id' = ...,

Re: hi all! i don't know that javascript into the ruby variable

2009-05-22 Thread Eric Mill
That actually is not going to be possible, the way you're doing it. ERB can't evaluate the JavaScript like that. What you might want to do is to write the @people hash out onto the page somewhere else first, as a JavaScript hash, and then have your function look up [name] in the JS hash. -- Eric

Re: using ActiveRecord::Validations::ClassMethods

2009-05-22 Thread Eric Mill
Awesome! The only thing more fun than writing code is deleting code. On Fri, May 22, 2009 at 9:09 AM, David Susco dsu...@gmail.com wrote: Thanks guys, That helped get rid of a lot of code. Dave On Thu, May 21, 2009 at 10:22 AM, Magnus Holm judo...@gmail.com wrote: params is simply Rails'