[Rails] Re: How can I avoid this warning?

2011-11-02 Thread Shir Ah
Peter Hickman wrote in post #999006: It is saying that mongo does not appear to be running or at least it is not running on the machine that your script is running on or is not running on port 27017. Are you running mongo on your machine? It is just the same as running MySQL or PostgreSQL in

[Rails] Re: Rails2/Rails3 nested form, fields_for not displayed

2011-01-27 Thread Shir Ah
Solrac Caritas wrote in post #945648: % f.fields_for :author do |author_form|% with %= f.fields_for :author do |author_form|% Thanks you very much It help me too! -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby

[Rails] Re: create new object in nested model

2010-12-06 Thread Shir Ah
Thank you But i have another problem: How to use render(association.to_s.singularize , :f = builder) when the partial is in a diffrent folder ? in the view there are 3 folders: 'tests', 'questions', 'answers'. so in '_form' in folder-'question' when there is a call to- link_to_add_fields(Add

[Rails] create new object in nested model

2010-12-05 Thread Shir Ah
Hi I created nested models: tests-questions-answers resources :tests do resources :questions do resources :answers end end resources :questions resources :answers models: class Test ActiveRecord::Base has_many :questions accepts_nested_attributes_for :questions,