RJS questions


  1. Is it possible to execute rjs from onclick event?
  2. Can i use rails code inside rjs? So i could easily add complicated
    form elements like date_select etc?
  3. If i have a form_remote_tag which calls action ‘add_entry’, do i have
    to somehow run render method to run rjs file or just create
    add_entry.rjs file and it will be executed automatically?
  4. Can i use rjs code directly (inline) in the controller?