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:
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
Here are my models: class Lesson < ActiveRecord::Base belongs_to :topic, :polymorphic => true validates_presence_of :topic_type, :topic_id
I am getting wrong number of arguments (3 for 2) error for simple_form_for tag in rails 3 (with haml).
I have this in my model: class Person < ActiveRecord::Base RELATIONSHIP_STATUSES = [ \"single\", \"in a relationship\",
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开发者_运
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
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.
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:
How do I make a simple form association have pre data when editing? My form: <h1>Editing kategori</h1>