Displaying 4 results from an estimated 4 matches for "org_attribut".
Did you mean:
org_attributes
2010 Mar 29
6
Updating records
So I would like to be able to update a record without having to load the
edit page. Lets use checking out a book as an example. From the front
page of my application I would like to be able to have a form field
where I can enter a record id and select one of a couple of check boxes
and then hit submit which will update the associated record with the
action selected by the check box (check out,
2012 Apr 06
3
I can't update data in table
In my edit page: url = profile/:id/edit
the content is !
<%= form_for(@user, :as => :user, :url => profile_path(current_user),
:html=>{:method => :put}) do |form| %>
<%= form.text_field :email, :class=>"input"%>
<%= form.submit ''Update Profile''%>
<% end %>
............................
In controller section !
class
2010 Aug 03
10
Returning last value
Hi.
I have the following controller of the update action:
[code]
def update
@projeto = Projeto.find(params[:id])
if (@projeto.update_attributes(params[:projeto]))
## Mesmo raciocĂnio utilizado no create.
@permissaoA = Permissao.find(:first, :conditions => ["usuario_id =
?", @projeto.responsavel.to_i])
@permissaoAvancado1 = Permissao.find(:first, :conditions
2010 Feb 23
11
Couldn't find without an ID
Hello all. I''m new to RoR. I am having trouble trying to get a simple
edit/update going. Everytime I hit submit, I get the following error:
+++++++++++++++++++++
Couldn''t find Content without an ID
Request
Parameters:
{"format"=>"#<content:0x4d3daac>",
"commit"=>"Update",
"_method"=>"put",