Hi, I\'m a Rails newbie and this is my first stackoverflow question. I\'m currently writing a poll application, the concept is very simple.
I\'m sure I\'m over thinking this problem, but I can\'t seem figure out how to simply create and submit multiple records at once. I have a User model and a Prediction model. User has_many predictions,
I have rather esoteric usecase for nested forms, multi-file uploads, and progress bars in Rails. I haven\'t found any online discussions about precisely about this so far. If I have overlooked somethi
I have created scaffolds for a number of resources in a rails application, and these form the content for the system.
I want to be able to fill a table with some data through AJAX. My problem is that this data is from two different models. This will be long 开发者_JS百科but please bear with me.
I have the following models class GymUser < ActiveRecord::Base belongs_to :user belongs_to :gym end class User < ActiveRecord::Base
I am struggling to get the nested form rendered with belongs_to association. I was expecting the address fields in the \"_form.html.erb\" (below) to be rendered correct, but apparently it is not, and
I am having trouble figuring out how to make a nested form using a has_many :through relationship. I used this Railscast and I took at look at this tutorial and lots of the questions on Stack Overflow
Abbreviated models: class Event < ActiveRecord::Base belongs_to :place accepts_nested_attributes_for :place
I would like to use the nested_form gem for my application that uses Rails 3.1 rc5. When I install the gem there is a js file placed in public/javascripts. i am supposed to place this line in my app: