Displaying 7 results from an estimated 7 matches for "dagnan".
Did you mean:
dagan
2006 Jan 30
7
"x" and "y" values in a form_tag
Hi,
I have some strange output in my log file, where I am sending information
via a form to the database, eg:
<-- snip -->
Processing StoreController#add_var_product (for 127.0.0.1 at 2006-01-30
12:30:19) [POST]
Parameters: {"size"=>{"id"=>""}, "x"=>"44", "y"=>"11",
2011 Apr 04
1
Best way to instanciate an empty address element in many nested fields_for
Hi!
I have 3 models, User, Company and Address.
Basically, a User belongs to a Company and an Address has one Company
(because it can be linked to other models).
In a form I want to display a User, its Company and its company Address,
with fields_for.
The problem is when my User has a Company, that does *not* have an Address:
the part containing the Address is not displayed.
I see 2 ways of
2011 Jul 06
5
Monkey patching a gem (rails_admin, with Rails 3)
Hi.
I''m trying to monkey patch the rails_admin gem.
First, I tried to add a file in config/initializers containing:
RailsAdmin::MainController.class_eval do
def get_sort_hash
CODE HERE...
end
end
It was only loaded once, and then the method from the gem was always
executed instead of mine.
I also tried to add the code in lib/ with the correct line in
config/application.rb to load
2007 May 30
1
Problem compiling dev version for windows
Hi!
I''m trying to compile the svn version (0.10.5.1), but I''m experimenting
a lot of troubles (I had to install Visual C++ Express 2005, etc.) -
Windows XP SP2
Has anyone already done it? It would be very nice if you coul help me.
Actually, I need it to solve the highlight bug (I also get the segfault
message when I use the highlight function).
Thanks!
--
Posted via
2011 Jun 22
0
Spork, Rails and testunit
Hi.
I''m trying to use Spork (actually spork-testunit, last git version) with
Rails 3. My setup is correct, I manage to launch Spork (through bundle exec)
and testdrb.
But I cannot succeed to have my models reloaded.
Spork-testunit''s doc says to put the loading commands in the prefork block,
which I did. Nobody seems to require the use of Spork#trap_method.
What is the good
2011 Jul 07
0
has_one through belongs_to
Hi.
My model data is the following:
- Place
- User
- Checkin
Instead of having a Checkin that belongs to both User and Place, I chose to
add another model, Program, that allows to list all the places a user can
checkin into, and also hide the checkins he''s no longer involved in (= the
user sign out of a specific program).
That give me crazy relationships:
Program has_many Checkin
2011 Aug 15
2
respond_with with templates and http status when creating an object
Hi.
When you use respond_with in a controller #create method and want to render
XML the response gets the http status 201 (Created).
But if you use a view to render this XML response_with uses the status 200
(Ok), for example when you use the gem rabl.
I cannot determine if this matter is related to Rails or rabl. If it''s from
Rails, is there a particular reason for this behavior?