[Rails] How to i18n dropdown menu values. populated from database table.

2014-11-08 Thread Pavel Krejsa
I have *cargo* form with dropdown menu in *simple_forms*, which is populated from model *cargo_price*: <%= f.association :cargo_price, :label_method => :price, :value_method => :id %> There is model called *cargo_price* with only *ID* and *price* columns, *price *column has 3 values (these v

[Rails] Re: [Need advice for newbie] How to define structure of applications in case I have multiple user roles.

2014-01-25 Thread Pavel Krejsa
Hi, Thanx a lot I will check this gem and it's ability. It is pretty cool I would not have to separate all controllers and views. Pavel K. On Saturday, January 25, 2014 10:27:37 PM UTC+1, Frederick Cheung wrote: > > On Saturday, January 25, 2014 9:03:09 PM UTC, Pavel Krejsa wro

[Rails] [Need advice for newbie] How to define structure of applications in case I have multiple user roles.

2014-01-25 Thread Pavel Krejsa
Hi, I am really newbie in RoR, I am just reading this book. I am trying to make very simple application who should have 3 user roles (3 groups of many users). Each role should have different permission set (of course i have to i