Displaying 4 results from an estimated 4 matches for "pipplo".
2011 Feb 15
7
Hide/Show Div and link_to_remote
Hi
I want to show some info and provided an ''edit'' button next to it.
This will change the display info to an editable form.
I''ve seen this done before, but what I can''t figure out is whether I
have to use an actual remote action to the rails server?
I think I should be able to render both the edit box and the display
info as seperate divs, and then show/hide
2011 Jun 16
1
Deep cloning an ActiveRecord
I have a situation where I want to duplicate an ActiveRecord including
duplication of has_many relationships.
I''ve seen a few plugins but it seems unclear if they will work on
Rails3. So I was wondering if anyone has a good suggestion for a
plugin they are currently using to do this?
Basically I''m doing this because I have an object that I want to allow
my users to edit. I
2010 Oct 15
0
Why is include_root_in_json true now
I''ve been trying to understand this for a bit now, and I can''t find
any discussion on why the change was made. The default value used to
be false, but now it is true?
When I do something like this it is nice to have the root value:
format.json { render :json => @user }
{"user":{}}
But if I want to output extra variables too it gets annoying to have
the root node
2011 Mar 03
0
application/json request defaults?
I ran into a strange problem when moving a locally working app to a
hosted server.
We have a phone app sending json requests via POST to the rails app.
When doing this on the local system everything comes through as
application/json
When I moved it to the host I was having Authenticity Token errors. I
realized that our phone app was not setting the correct content-type
to application/json