Building Dynamic DOM Element IDs for RJS Templates

My element IDs are constructed using the object id. So . . .

<%= link_to_remote "Do Foo", :url =>{:action => "do", :id => foo.id} %>

How do, and can I, build that id in the RJS template?

Also, can anyone recommend a good Ruby syntax book that would help me
out with Rails? I know Java, so I don’t want a rehash of OO
programming, I just want the meat of using Ruby.

Thx.

Arch S. wrote:

My element IDs are constructed using the object id. So . . .

<%= link_to_remote "Do Foo", :url =>{:action => "do", :id => foo.id} %>

How do, and can I, build that id in the RJS template?

Also, can anyone recommend a good Ruby syntax book that would help me
out with Rails? I know Java, so I don’t want a rehash of OO
programming, I just want the meat of using Ruby.

Thx.

For learning Ruby you can’t go wrong with the Pickaxe book–Programming
Ruby by Dave T., from the Pragmatic Programmers.

Jeff C.man

On 4/17/06, Jeff C.man [email protected] wrote:

Also, can anyone recommend a good Ruby syntax book that would help me
out with Rails? I know Java, so I don’t want a rehash of OO
programming, I just want the meat of using Ruby.

Thx.

For learning Ruby you can’t go wrong with the Pickaxe book–Programming
Ruby by Dave T., from the Pragmatic Programmers.

Or “Ruby for Rails” by David A. Black. I highly recommend it.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs