Is there any option for formtastic in Active Admin, for the showing current datetime in datetime input. It\'s coming with bla开发者_JS百科nk on the form load.There is no direct way to do this. However
I have been looking at a way to add autocomplete functionality to a formtastic form and came across the crowdint / rails3-jquery-autocomplete but I haven\'t be able to get the latest version(0.9.1) to
I\'ve got a model Order class Order < ActiveRecord::Base has_many :order_details, :class_name => \"OrderDetail\"
I am trying to make a very simple dynamic form.I am using Rails 3.1 and formtastic.Basically, I want to change a couple of fields based on a radio button.
I have this formtastic field in a form where an user input his credit card data: <%= form.input :credit_card_type, :as => :radio, :collection => User.credit_card_types %>开发者_运维百科
I have a requirement to add some expanding panels in my formtastic forms, so when a user clicks the \'+\', a hidden panel shows itself and gives more information about the field.
I need to sort a collection for formtastic by their state, wether they are selected or not. My setup looks similar to the following
I\'m trying to customise a ActiveAdmin form for a Recipe model that has a has_many relationship with Step.
In the Formtastic docs, it talks about adding a line for base errors: <开发者_如何学Go%= semantic_form_for @record do |form| %>
I\'ve been spending some hours searching for useful Rails gems but I still hesitate between simple_form and formtastic.