Results 1 to 2 of 2
Thread: object type and flash
Dec 30, 2007, 08:06 #1
- Join Date
- May 2007
- 0 Post(s)
- 0 Thread(s)
object type and flash
Hello buddies, I have a page that works with several models (type1, type2, type3) with STI. When I save a object I would like to have a feedback message on my flash.
How can I catch the model type in order to show the name.
For instance when I save a type1 object the message should be "type1 has been saved" and when I save a type2 object the message should be "type1 has been saved" .
@type.save flash[:notice]=@type.name+"has been saved"Alla prossima ...