Awesome! The only thing more fun than writing code is deleting code.
On Fri, May 22, 2009 at 9:09 AM, David Susco wrote:
> Thanks guys,
>
> That helped get rid of a lot of code.
>
> Dave
>
> On Thu, May 21, 2009 at 10:22 AM, Magnus Holm wrote:
>> params is simply Rails' version of @input.
>> If
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
hi all!
sorry! i'm not speak english well.
but, i want to learning.
this is my code.
553 text <<-JAVASCRIPT
> 554
> .clipping.
> 571 function grow_window(name)
> 572 {
> 573 $('name').innerHTML = "이름 : #...@people[name
> ].fetc
Thanks guys,
That helped get rid of a lot of code.
Dave
On Thu, May 21, 2009 at 10:22 AM, Magnus Holm 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' => ..., 'name' => ... }
4 matches
Mail list logo