Displaying 20 results from an estimated 200 matches similar to: "Rails 3.1 form & routes.rb [newbie]"
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
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 Nov 19
1
I18n::InvalidLocaleData error on load page
Hi All,
I use rails 3.0.1 in my application and when the server web load this
following page http://localhost:3000/signup
<h1>Sign up</h1>
<%= form_for(@user) do |f| %>
<div class="field">
<%= f.label :name %><br />
<%= f.text_field :name %>
</div>
<div class="field">
<%= f.label :email %><br
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 Apr 23
1
Simple_form bootstrap style inline-form not working properly
Anyone familiar with bootstrap and simple_form. Please help!
http://stackoverflow.com/questions/10279164/simple-form-bootstrap-style-inline-form-not-working-properly
--
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
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
2013 Feb 04
3
kill webrick process on OSX Lion {localhost:3000}
Hi Folks,
I have a simple question
When I have to stop the webrick server on my OSX Lion I use the follow
keyboard button:
Ctrl + Z
but after that I launch the command: "ps"
the webrick server is always active I have to kill the process with:
kill -9 [ID PROCESS]
exist a command to kill instantly the webrick server?
thanks,
C
--
Posted via http://www.ruby-forum.com/.
--
You
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
2000 Apr 26
1
cluster indices
Hi-
I'd like to apply some of the cluter indices, using 'clustindex' in the
cclust package, but using output from hierarchical clustering using
'hclust' in the mva package.
The two packages use a different format for storing the results of
clustering; has anyone coerced one into the other?
Thanks!
-John Barnett
2011 May 15
0
Upgrading to Rails 3.1
I''m working on updating my rails 3.0.5 app to rails 3.1.0.beta1 and I
seem to be running into a problem when doing `rake rails:update` when it
runs `rake rails:update:javascripts`
Here is my bundle:
Gems included by the bundle:
* RedCloth (4.2.7)
* actionmailer (3.1.0.beta1)
* actionpack (3.1.0.beta1)
* activemodel (3.1.0.beta1)
* activerecord (3.1.0.beta1)
* activeresource
2011 Mar 17
7
Beta Invitation in Rails 3, little problem
INVITATION BETA EMAIL
I have in the email that the app send to friend''s email address
------------------------
You are invited to ExampleApp.com click below to signup
http://localhost:3000/signup.efweiuvwnjernfwkefwebhsohj
------------------------
But I have a dot in the url beteween http://localhost:3000 and the token
I wish the following url
2006 Jan 24
2
pxelinux.0 hangs after it is downloaded.
Hello Everyone,
In short, I have the following questions:
Is there a known problem with PXE booting and LinuxBIOS?
Will pxelinux.0 not work with a serial console?
Is there a way to convert pxelinux.0 into an ELF file?
The Long Version:
I am working on installing Rocks Cluter distribution on a LinuxNetworx cluster. The hardware was donated to my college, and the CS
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
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
2009 Feb 26
0
kmeans: invalid length argument
Dear R Experts,
I am running a cluter analysis using kmeans and have come across an error to which I am unable to find a solution. First, let me describe the problem:
THE R CODE IS:
--------------------------------------
# NRM is a 100 x 100 numerical matrix
infile = 't:\\NRM\\NRM'
groups = 7
outfile = 't:\\NRM\\cluster.groups'
print( paste(infile, groups, outfile, sep='
2014 Apr 19
0
How to has_one/belongs_to association only return the objects unassociated in combobox?
I have two models (Car and Driver) and a combobox to select which driver
belongs to which car. I want the combobox just show the objects that have
not yet been associated.
# vehicle belongs_to: driver
# driver has_one: vehicle
# simple_form # vehicle/_form.html.haml
= f.association: driver, label_method: :name, value_method: :id
How to ensure validation before saving, to avoid problems of
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
2012 Dec 04
0
Empty test suite is run after every rake task
When I run rake db:migrate or rake -T I get these lines at the end:
Finished in 0.000276 seconds.
0 tests, 0 assertions, 0 failures, 0 errors
My Gemfile is:
source ''http://rubygems.org''
gem ''rack''
gem ''rails'', ''3.0.9''
gem "acl9", ''0.12.0''
gem "fastercsv"#, :version =>
2012 Jan 15
2
DEPRECATION WARNING: Passing a template handler in the template name is deprecated. (rspec + haml)
I upgraded a small project that I had created on 3.1.3 to 3.2.0.rc2.
Running rspec on it brings about a large amount of these messages:
DEPRECATION WARNING: Passing a template handler in the template name is
deprecated. You can simply remove the handler name or pass render :handlers
=> [:haml] instead. (called from block (2 levels) in <top (required)> at