Displaying 20 results from an estimated 20000 matches similar to: "Simple_form bootstrap style inline-form not working properly"
2012 Apr 07
1
AJAX form (using simple_form) with preserved error validation
I know it''s unlikely that anyone will check this link, but here''s hoping
http://stackoverflow.com/questions/10051050/ajax-form-using-simple-form-with-preserved-error-validation
Sorry, too hard to explain without showing the pics.
Abram
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group,
2012 Mar 10
6
Cartographer shows correct info box BUT over wrong marker
Hi guys (and gals),
The code formatting is so nice on SO.com, so I thought I''d just share
my post in hopes that someone from the group can help.
http://stackoverflow.com/questions/9643786/cartographer-shows-correct-info-box-but-over-wrong-marker
Feel free to answer back via email if you don''t have an SO account.
Thanks!
Abram
--
You received this message because you are
2012 Jan 07
2
set a default value with simple_form
hello
anyone know how i can set a default integer value with simple_form, i
have code like this below in my view but its not working.
<%= f.input :age, :value => ''30'' %>
i would like the input box to have the value of 30 by default
thanks for any help.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google
2011 May 24
2
simple_form disable html5
Hello,
How do I disable html5 with simple_form gem?
I tried to type:
SimpleForm.html5 = false
in environment.rb
But this throws error.
undefined method `html5='' for SimpleForm:Module (NoMethodError)
Even though I see...
module SimpleForm
...
mattr_accessor :html5
@@html5 = true
...
end
Any explanation on this? How I can disable it in any other ways?
Thanks.
--
Posted via
2012 Jan 06
1
How to pass a field from simple_form as a hidden div value
Hi folks
Im trying to pass a value to my hidden div using simple_form but im
not sure how to do this, was wondering if anyone could help me with
this. Here is my view using simple_form
<%= f.label "First name" %>
<%= f.text_field :first_name %>
<%= f.label "Last name" %>
<%= f.text_field :last_name %>
<%= f.input :full_name, :as =>
2010 Jun 16
0
:wrapper_tag, :wrapper_class options (and more) with simple_form and Rails 2.3 ?
Hi,
I''m making my first Rails project and I''m using the simple_form gem
(version 1.0) with a Rails app (version 2.3.5). simple_form repository
v=1.0
Is there any way to implement the nice
options :wrapper_tag, :wrapper_class, :wrapper_error_class ? Or maybe
I''m missing something? :-D
Thank you for your advices
Fro_oo
ps : I can''t change my Rails gem and
2013 Jan 26
4
Best practice to handle this
Hi!
I have a model which has a field that can have three values only. I store
the value in the database as an integer, 0, 1 or 2, but when I display it I
want a more appropriate text. And, I want it to be translatable using i18n.
Let''s say that it corresponds to how difficult something is. So, 0
represents "Easy", 1 represents "Normal" and 2 represents
2013 Mar 02
3
Help Radio button
Hi i''m fairly new to ruby on rails and i''m creating a form using
simple_form and in one bit i have radio buttons and say i have 3 buttons
a,b,c so i want it to be if a is pressed then certain text fields show, and
if b is pressed a different set of text fields show and similarly for c.
Can anyone help me on this?
--
You received this message because you are subscribed to
2014 Mar 14
0
AngularJS options with a simple_form checkbox
Hi guys,
How does one assign ng-model to a checkbox in simple_form? I have tried
adding it like this:
=f.input :super_admin , label: false, checked_value: true, unchecked_value:
false, as: :boolean,:input_html=>{"ng-model"=>"superadmincbx"}
but my ng-hide does not work.
%span{"ng-hide"=>"superadmincbx"}
I'm also using the Batarang
2012 Jun 01
0
How to set the default value on a simple_form association
Folks
Im using simple_form and im able to see a selection of users from my
drop
down list but im trying to set the default value. Here is what ive tried
<%= f.association :people, :input_html => { :value => ''someval'' } %>
i want someval to be set in the selection by default. Any help would be
appreciated.
--
Posted via http://www.ruby-forum.com/.
--
You received
2006 Feb 24
5
need help with form layout
Is there some way to format the layout of the fields within a form? I''ve got about 10 fields that I''d like to lay out in a couple of columns. Tried putting them in a table and that didn''t work too good. Any pointers will be very much appreciated.
Thanks,
Bill
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2011 Mar 10
4
Multi-model forms
Hi guys, I''m new to ruby and rails and I''m working on multi model
forms, specifically 3. I''m using this http://guides.rubyonrails.org/getting_started.html
as a start, and its got a 2 Model example but I cant seem to get the
last one working.
These are my models:
Country name:string code:string (has_one :address)
Address address_line1:string
2012 Mar 04
3
Which command run after change Models
Hi:
I''m reading and learning from the Rails tutorial at [1] but not building
the sample application instead I''m trying to build my own. After
generate all the migration and build the main classes for Models I made
some modifications to them in order to build relationship between tables
now I think that I need to run some command to generate the scaffold
again with proper
2011 May 03
0
Simple_Form and Simple_Fields_For and working in Form_Tag, Fields_For
I have this form and i got it working as i want:
<%= form_tag(update_individual_photos_path, :method => "put") do %>
<%= fields_for "photos[]", @photo do |f| %>
.................
<% end -%>
<%= submit_tag("Post") %>
<% end %>
But i would like to move to doing this with simple_form_for and
simple_fields_for but i cant get it
2010 Sep 09
17
formtastic issue
Hello,
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?
2013 Feb 17
5
Where do Gems Live (e.g. CKEditor)
I''m a Rails newbie and I have added the CKEditor Gem which is working
okay. To configure the gem though, you have to edit the config file,
which is also working when I do that. However, when I push to github and
pull to my other computer, the config file is not changed.
This lead me to the following broader question: when you use a gem,
where does the code go and how can you make sure it
2012 Feb 01
0
Rails 3.1 form & routes.rb [newbie]
Hi all,
maybe is a newbie question anyway
1. I create de rails app with
# rails new {my app}
2. after I add some gem to my Gemfile
source ''http://rubygems.org''
gem ''rails'', ''3.1.1''
gem ''sqlite3''
gem ''simple_form''
gem ''execjs''
gem ''therubyracer''
# Gems used only
2012 Sep 08
0
Client side form validations
Can anyone point me in the direction of what is the best way to
implement client side validations in rails? It seems like it is/used to
be client_side_validations, but I can''t get it to work with formtastic
or simple_form. Is there a gem out there that will do client side form
validations out of the box, or do I need to write my own javascript?
--
Posted via
2013 Jul 20
2
How to use twitter bootstrap
Hi,
I have a Ruby 1.9.3p194 and Rails 4.0.0, Can i used twitter-bootstrap for
designing with these version, Or it is compatible with these version,
also tell me how to make rails application using twitter bootstrap.
Thanks..!
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop
2013 Jan 03
1
Trying to add bootstrap to existing project, getting CSS compile error: missing file
Trying to add bootstrap to an app being ported to Rails 3.2.3.
I get the following error:
Error compiling asset application.css:
Sass::SyntaxError: File to import not found or unreadable: bootstrap.
Here''s my gem file:
source ''http://rubygems.org''
gem ''rails'', ''3.2.9''
group :assets do
gem ''sass-rails'',