search for: formtast

Displaying 20 results from an estimated 25 matches for "formtast".

Did you mean: formtest
2011 Feb 21
1
Multiple custom CSS for Formtastic
Inside stylesheets I have formtastic.css and formtastic_changes.css. In formtastic_changes.css I have a custom with: form.formtastic { width: 700px; etc.. It is working ok but now in only one page only, need a narrower form, say 530. So I need to have two width set up. What is the best way to do this? I mean I do not want to cha...
2010 Jan 16
3
Formtastic and Access to Variables of Nested Model
So I''m not even sure if I''ll be able to properly explain what I''m trying to do, but I''ll do my best. Let''s say that I have two models: Document and Option. A Document has many Options (and, by extension, an Option belongs to a Document). Each document may have a different number of options, hence why I made it a separate model. Each document has the
2011 Oct 05
2
formtastic / activeadmin
Newbie question: want to following code to migrate to formtastic: <% f.fields_for :assets do |asset_fields| %> <% if asset_fields.object.new_record? %> <p> <%= asset_fields.file_field :asset %> </p> <% end %> <% end %> tried this: f.inputs "Appartment Details" do f.input :assets do |asset_fields|...
2012 Oct 16
0
How to avoid an attribute without passing it to post in formtastic
...developing rails application. I have a check box in the form like: <td><%= b.check_box :chkbx, label: false, checked: false %></td> While submitting the form. I need to avoid passing checkbox name argument in the post. How to avoid checkbox attribute from passing it to post in formtastic? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group...
2012 Sep 22
1
formtastic does not save at all
Rails 3.1.3 I am using Formtastic gem in order to deal with multi-select dependencies. <%= semantic_form_for(@give) do |f| %> <%= f.inputs do %> <%= f.input :departure, :collection => Departure.find(:all, :order=>:city).collect{ |c| [c.city,c.id]}, :required=>true %> <div id="des...
2012 Oct 31
2
What is Formtastic and SimpleForm gem ? Is any one of this is by default included in Rails ?
Hi all, I read Formtastic and SimpleForm gem. I am using 3.4 Q 1 Is any one of this is by default included in Rails ? Q2 Any advantage of this gems over simple form tags ? As per my knowledge we are using form helper , but still i raised the qustion ? Thanks Regards Fahim Babar Patel -- You receive...
2010 Feb 19
3
Hooking validates
I want to hook the validation routines so that I can flag html labels and change their color to better indicate which fields need to be corrected in a form. Is there a way to do this conveniently and/or conventionally? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this
2010 Jun 21
9
[BUG] Segmentation fault
...uot;git://github.com/thoughtbot/shoulda.git" gem ''factory_girl_rails'' gem ''cucumber'' end gem "devise", :git => "git://github.com/plataformatec/devise.git" gem ''cancan'' gem ''redgreen'' gem ''formtastic'', :git => "git://github.com/justinfrench/ formtastic.git", :branch => "rails3" gem ''mail'' After installing all the gems and running rspec ./spec/controllers/ some_file.rb I get the following error: http://gist.github.com/446668 Running any o...
2010 Jun 09
3
rake tells me to install gems that are already there
...e on hostmonster.com and i''ve run into a small problem that I just can''t get. When I push my application into my hosting environment and try to run rake db:migrate, I get an error message from rake telling me to install the missing gem my environment.rb file has: config.gem "formtastic" config.gem "authlogic" So I installed them but I still get the same error. I''ve no clue as to whether this is a hostmonster problem or something in a rails script or configuration file that I''m overlooking. I also found a gem called gemsonrails. So I was thinki...
2010 Jun 20
7
rspec-rails 2.0.0.beta.12 showing undefined method error for route_to
...ers directory. So, my question is: Why is not the file in there? Why is not the matchers directory either? Then I found under /Users/damselem/.rvm/gems/ruby-1.9.2-head at rails3/ a bundler directory with some gems, and with folder names like: devise-d498cf3a4e1a3fef3f4f071d4feec6a489efe480-master formtastic-8ab93b34c3a97eee21e38185e14bed2f769c81e5-rails3 shoulda-b78dbf514bbce3272023d3a4742474857c2eb3c3-master Why is that? Why there are two different directories for gems? Why are devise, formtastic and shoulda not in the gems directory? Thank you very much, and sorry for asking so many questions, b...
2010 Sep 09
17
formtastic issue
...llo, I will try to explain it step by step :-) I just created a new rails 3 app, then I created a new controller... rails generate controller admin::users I didn''t forget to add the resources in the routes.rb file like this. namespace :admin do resources :users end Now I try to use formtastic to create the form but I get erorr that my users_path doesn''t exist? undefined method `users_path'' for #<#<Class:0x104169a40>:0x104167df8> ...even though I have created resources for users. Can someone explain to me what''s happening. Thanks for any help...
2011 Oct 26
6
Add an index to a form
...abel :email, "Email Address" %> <%= i.text_field :email %> </li> <% end %> I''m having some troubles with the first line: <%= fields_for "user[invites_attributes][]", invite do |i| %> What is the correct usage of that? I''m using formtastic and when I made that line but with my fields <%= f.semantic_fields_for ("user[children_attributes][]", user) do |fes| %> and I get this error ............... unexpected '','', expecting '')'' I hope someone can help Thanks in advance -...
2010 Jun 05
6
How do you update HABTM relationships or create.
Hi, I have a User model with a HABTM relation to a Role model and vice versa. So There''s a roles_users table that references :user and :role. I''m using formtastic, and in the user.edit.html.erb I have a line that outputs the roles as a multi-select list box. But the box is not showing the roles that have been assigned to the users. Another problem is that if I select a few roles and press the update button, the roles are not being asssigned. I have to man...
2010 Jan 20
0
need help with nested forms and habtm
...attr_accessible :inquiry_ids accepts_nested_attributes_for :inquiries Inquiry belongs_to :customer has_and_belongs_to_many :machines accepts_nested_attributes_for :machines attr_accessible :machine_ids Machine has_and_belongs_to_many :inquiries I''m on Rails 2.3.5 and formtastic 0.9.7 ### What I want ### I wanted to build a nested form (using formtastic + haml), so a User could enter his data and create an inquiry regarding several machines (he put into a cart in advance) so I set up this: - semantic_form_for @customer do |form| - form.inputs do = form.inp...
2011 Feb 03
2
Display note when MouseOver Input form
I''m using Rails 3, Formtastic an Jquery. I would like to display a "floating" note when an input field gets focus. A good example is when trying to submit a story on digg when you are not logged in. What is the best way to do this? -- You received this message because you are subscribed to the Google Groups &quot...
2011 Nov 01
1
Rails 3.1, stylesheet assets not being reloaded correctly?
...irectories. You''re free to add application-wide styles to this file and they''ll appear at * the top of the compiled file, but it''s generally better to create a new file per style scope. *= require application-pre *= require_self *= require application-post *= require formtastic */ body { background-color: #000; } which is being served just fine: Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2011-11-01 10:57:08 +0100 Served asset /application.css - 304 Not Modified (0ms) No I change background-color to #fff and it seems to be served right:...
2011 Feb 17
16
Unindent ERB output
Hi all, I''d like to unindent a block of ERB specifically to combat the extra spacing being added to content inside <textarea> by the browser. Is there such a feature in ERB? I shall denote indentation with underscores in the pseudo code example below. Thanks in advance, Khoan. myview.erb: <html ...> __<%= render ''form'' %> </html>
2010 Aug 17
2
[Form] Method POST & PUT problem
...---------------------------- map.namespace :profile do |profile| profile.resource :reset_password, :only => [:new, :create] end ------------------------------------------- Output: ----------------------------------- <form method="post" id="edit_user_2" class="formtastic user" action="http://localhost:3000/profile/reset_password"><div style="margin: 0pt; padding: 0pt; display: inline;"> <input type="hidden" value="put" name="_method"> <input type="hidden" value="YttRSHr2SzCqC...
2011 Nov 02
3
form_for text_field
....3, 2.3.8, 2.3.5) arel (2.0.6) builder (3.0.0, 2.1.2) calendar_date_select (1.16.1) cgi_multipart_eof_fix (2.5.0) columnize (0.3.2) composite_primary_keys (2.3.5.1) cucumber (0.7.2) cucumber-rails (0.3.1) diff-lcs (1.1.2) erubis (2.7.0, 2.6.6) ezcrypto (0.7.2) factory_girl (1.2.4) fastercsv (1.5.3) formtastic (0.9.8) gem_plugin (0.2.3) gherkin (2.3.2 x86-mingw32, 1.0.26 i386-mingw32) hike (1.2.1) i18n (0.6.0, 0.5.0) json (1.4.6) json_pure (1.4.6, 1.4.3) linecache (0.43) log4r (1.1.7) mongrel (1.1.5 x86-mingw32) multi_json (1.0.3) nokogiri (1.4.1 x86-mingw32) prawn (0.8.4) prawn-core (0.8.4) prawn-layo...
2011 Oct 11
1
How to use carrierwave with active admin?
Hi, I''d like to upload images and videos with carrierwave at the active admin interface. Just to make it clear, the admin will change images and video at the website using active admin. if anyone knows how to do this please help me. Thank you, Rodrigo -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this