Hi,

I have a model that has a column called "status", whose value can be
one of P for "PENDING",  A for "APPROVED" or R for "REJECED".

When a record is created or updated, I want to allow users to choose
one from a select list that has those three options and I added a
method as follows to my helper.

  def status_form_column(record, input_name)
    select_tag(input_name, options_for_select("PENDING" => "P",
"APPROVED" => "A", "REJECTED" => "R"))
  end

This is working as I expect.

Now, I also want to apply inplace_edit for the column. I installed
in_place_editing plugin and added the following line to my controller.

    config.columns[:status].inplace_edit = true

When I click a value of the column, a text box appears while I hope a
select list.
Can anybody give me a hint?

Thanks in advance,

ebi

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/activescaffold?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to