simple-form
simple_form_for error: undefined method - associated models
In my rails application I have two associated models called Magazine and Article. Magazine class Magazine < ActiveRecord::Base[详细]
2023-03-08 08:50 分类:问答How do you get simple_form to use the base class for urls and not the subclass?
Whenever I use simple_form_for(), it defaults to \"my_subclasses_path\" rather than \"my_base_classes_path\". How can I tell it to not use the subclass?[详细]
2023-03-07 12:01 分类:问答Rails simple_form label above input
Using simple_form -- is there a way to change where the input field\'s label is placed?If for example, I wanted to place the label above the 开发者_如何学运维field, how would I do that?In the CSS styl[详细]
2023-03-06 12:12 分类:问答rails simple_form two models
I\'m starting to use simple_form for 开发者_StackOverflow社区a rails application, and while converting some of my forms, I came across one that has two models that it is working with, sort of an embed[详细]
2023-03-06 07:51 分类:问答Rails 3: simple_format not printing "< xx >"
I want to print text to HTML. I\'m using si开发者_Go百科mple_format, however everything seems to be right except that what is inside \"< >\" is not printed.[详细]
2023-03-03 18:10 分类:问答rails bringing back all checkboxes instead of only selected one
I am using simple_form and have a following sample tag: <%= f.input :medical_conditions, :label=>false, :collection => medical_conditons, :as => :check_boxes%>[详细]
2023-03-03 13:36 分类:问答nested attributes in simple_form returns mass assignment error
Models: class Topic < ActiveRecord::Base has_many:posts, :dependent => :destroy validates:name, :presence => true,[详细]
2023-03-03 03:25 分类:问答Where is this error message coming from? Simple_form?
i\'m getting this error message popping up with strange styling. Where in my application is it comi开发者_运维百科ng from? I\'m using the simple form gem.[详细]
2023-03-01 07:34 分类:问答How do you make each option in a drop down menu a link with the association simple_form call?
I 开发者_如何学编程have this form using the simple_form plugin: <%= simple_form_for([@video, @video.comments.new], :remote => true) do |f| %>[详细]
2023-02-26 19:45 分类:问答Grouping labels with simple_form
Is it possible to group inputs with simple_form? I want \"Postcode and city\" to appear with one label and two inputs in one div as a开发者_开发百科 group and not separately. But I cannot find a swit[详细]
2023-02-25 10:04 分类:问答