simple-form
Different css style for each form using simple_form gem
Is it possible to have different classes for each sim开发者_开发知识库ple_form so you can apply different stylesheets??You can specify class attributes using the html option, thus:[详细]
2023-03-19 13:56 分类:问答rails simple_form_for association select text
I am using Rails 3.0, Ruby 1.9.2 and the Plataformatec simple_form gem. The code below renders a select box with Consumer names. I want it to show a select box withConsumer locations instead. How do[详细]
2023-03-19 12:32 分类:问答How can I elegantly construct a form for a model that has a polymorphic association?
Here are my models: class Lesson < ActiveRecord::Base belongs_to :topic, :polymorphic => true validates_presence_of :topic_type, :topic_id[详细]
2023-03-19 05:15 分类:问答simple_form_for error: wrong number of arguments (3 for 2), in rails 3
I am getting wrong number of arguments (3 for 2) error for simple_form_for tag in rails 3 (with haml).[详细]
2023-03-18 16:58 分类:问答Translate form helper to simple_form or formstatic
I have this in my model: class Person < ActiveRecord::Base RELATIONSHIP_STATUSES = [ \"single\", \"in a relationship\",[详细]
2023-03-18 06:30 分类:问答Python pyramid_simpleform how do I deal with relationships?
I\'m moving my first steps with pyramid_simpleform after having ever used formalchemy in Pylons 1. The form I\'m starting with is pretty simple: I have some options and user has to check one开发者_运[详细]
2023-03-17 11:30 分类:问答Rails simple_form label_html
I\'d like to override the margin between the input & its label on one form -- can this be done via :label_html => .... ?The example on github shows a :cla开发者_如何转开发ss => \'special\' being p[详细]
2023-03-13 13:32 分类:问答Simple form association custom label name
I have been struggling with what I perceive to be a simple problem: Working in Rails 3.0.8 with the simple_form 1开发者_如何学运维.4 gem.[详细]
2023-03-12 08:50 分类:问答Rails edit form not showing nested item
I got a form that have a nested link. The problem that the link field is empty on edit. H开发者_JS百科ere is my form:[详细]
2023-03-10 08:35 分类:问答Rails simpleform pre data
How do I make a simple form association have pre data when editing? My form: <h1>Editing kategori</h1>[详细]
2023-03-09 20:08 分类:问答