simple-form-for Questions

4

I have a model (FooBar) with three columns: Foo -> String Bar -> JSON Baz -> String I want to create a form for this model Bar has default attributes of: {zing: {}, zaz: {}, laz: {}} ...
Canady asked 1/3, 2015 at 18:54

2

Solved

Environment Ruby 2.5.1 Rails 5.2.1 Simple Form 4.0.1 Current behavior I follow example in http://simple-form-bootstrap.plataformatec.com.br/examples/input_group I start with <%= simple_for...
Leitman asked 15/9, 2018 at 7:32

2

Solved

I'm still new to rails and simple_form and have been trying to implement a multiple select option to give a user multiple roles. Current input looks like this <%= f.input :secondary_role, :col...
Zolazoldi asked 14/7, 2018 at 17:44

2

Solved

simple_form is generating "type='number'" on the input field for any integer attribute, instead of type='text'. As this causes Chrome to show a counter control, I'd rather make it just use type='te...
Equivocation asked 6/12, 2014 at 11:23

1

Solved

I have a model with a datetime field, and is stored in UTC, how can I display that date in simple form gem in a specific timezone? Already tried with the option input_html: {value: @model.date.in_...
Olindaolinde asked 22/6, 2016 at 18:21

1

In my case, I have a client who has many tasks (which requires :detail and :completion_date fields.). I've been building a nested model form like the following: = simple_form_for @client do |f| =...

3

I use Simple_form in my Rails 4 application. How can I display error messages in a view that is not tied to a model ? I want to have the same result than in other views based on models. For now,...
Hornet asked 7/6, 2014 at 11:21
1

© 2022 - 2025 — McMap. All rights reserved.