search for: hericord

Displaying 13 results from an estimated 13 matches for "hericord".

2006 May 21
3
acts_as_list scope and polymorphic association.
this is my model: class Person < ActiveRecord::Base has_many :phones, :as => :callable, :order => :position end class Phone < ActiveRecord::Base belongs_to :callable, :polymorphic => true acts_as_list :scope => :callable_id end how can i add the callable_type to the scope. how can i say the scope is the {:callable_id,:callable_type} couple? is it even possible? thanks
2006 May 20
10
HOW TO create a new record and its associated objects within the SAME PAGE
hi, can''t find any good tutorial or advice to deal with the creation of a new record and it''s associated objects within the same page. do i have to use ajax just to add custom form fields that will be handled by the controller for associated objects creation.? do i have to use ajax to add associated objects to the unsaved but allready in session parent object? what''s
2005 Jan 17
5
how to override rails errors messages?
hi, how can i override rails errors mesages (that are in english) to display them in an other language? thanks hangon
2005 Dec 23
5
AJAX : Server to Client callback possible ?
hi, is there a way (with rails) to have live updates triggerred by the server on the client side? is there a little javascript lib i didn''t know that can listen to incoming server orders.... a friend of mine thought about an hidden .swf to make the socket connection and that can launch javascript instructions into the client web page. any working solutions to point me to ? thanks
2005 Dec 18
2
how to generate the api documentation localy with the same frameset as the online version?
hi how to generate the api documentation localy with the same frameset ...i mean to be abble to have files classes and methods listing on left. thanks
2005 Dec 28
2
form reset after successful form submission
hi, what''s the way to reset the form generated by the form_remote_tag after the successful submission of the form? thanks
2005 Dec 18
1
date_select and impossible dates....
hi, using date_select right from a generated scaffold code leads to an error if an impossible date is selected (like the 31 of february) can''t get a way to correct this via a validation.... in fact that make sens because in the model i have the ''dateofbirth'' object which is a date object.... so providing an impossible day-month-year trio leads to an impossible
2005 Dec 21
1
for_remote_tag to update diffrent <div> depending on call result ....
hi, is there a way to use form_remote_tag to update one div or an other depending on the call result...??? perhaps with evaluate_remote_response but can''t get it to work. help thanks olivier
2006 Mar 04
29
Getting RJS / EgdeRails working
Hi, using Rails 1.0 on windows (without svn yet) I just wrote "rake freeze_edge". Are the RJS-templates already included then ? When I write "rake update_javascripts" I receive this error: svn: ''.'' is not a working copy Any tipps for a newbie on how to get the update done (if neccessary) ? thx Jan
2005 Dec 30
2
help on submit_to_remote
hi, read the API doc and made search with google but can''t get a precise explanation on how submit_to_remote work. can someone help on that? thanks
2005 Dec 30
0
Best way to handle associated object creation WithIN the SAME form ?
hi, let''s take a very simple example. 2 tables: people and phones One person has_many :phones One phone belongs_to :person (the phone table contains a person_id) i began with the classical scaffold generator for the main form (the people form).... How can i add a phone , associated to the NOT YET SAVED person objet , with an ajax mean? do i have to put the unsaved person in session
2005 Jan 17
0
negative has_and_belongs_to_many possible?
hi, is there a possibility to tell activerecord in a has_and_belongs_to_many relation that the intermediate table has to contain the NON ASSOCIATED records instead of the associated records?
2008 Apr 01
1
using label tags in scaffold views...how to get the method name?
hi, i want to use the <label> tag in the scaffold views. for a text field where the id is id="person_last_name" how can i get the person_last_name string programmaticaly to use it as a label parameter <label for="person_last_name"> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups