Topic: Inserting variables into other strings

A simple question -

:update => "task_list_ID-HERE",

I've got the id as just 'id' (set from :locals before a partial render) - how would I include this within that string?

Thanks again smile
A

Re: Inserting variables into other strings

:update => "task_list_#{id}",

between the { } you can also put function calls.

My homepage: http://www.komendera.com/
Working at: http://www.abloom.at/
My blog: soaked and soaped http://soakedandsoaped.com/

Re: Inserting variables into other strings

Oh dear - I've been using that for the last two days in tutorials - how on earth did I forget it