any information?
>
> when you hit the route what does the browser show?
>
> On Friday, May 31, 2013 12:54:48 PM UTC+2, Sasha Chilly wrote:
>>
>> Here it is:
>>
>> <% set_editor_comment %>
>> <%= form_for @article do |f| %>
>>
Here it is:
<% set_editor_comment %>
<%= form_for @article do |f| %>
<%= render "shared/error_messages", :target => @article %>
<% if admin? %>
<%= f.label :user_id %>
<%= f.select :user_id, User.authors_and_admins.collect {|p| [
p.username, p.id ] } %>
<% end %>
Sorry guys, problem was not in Ransack or checkboxes. it's all about html
and styles, as checkboxes simply didn't get checked when i clicked them.
Fixing styles helped
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To unsubscribe from t
Now i've played a bit and see that when in view i have:
- @tags.each do |tag|
= check_box_tag("q[tags_id_eq_all][]", tag.id, {})
= tag.name
every checkbox in html is set to "checked" by default.
If i make it false, like this:
- @tags.each do |tag|
= check_box_tag("q[tags_id_eq_al
Colin Law написал:
>
> On 26 May 2013 13:49, Sasha Chilly >
> wrote:
> > Hello, need some help,
> > App is running under Ruby 1.8.7 and Rails 3.0.11
> > After updating Rails version to 3.1.11, tsrted to fet strange error on
> new
> > article page:
> &g
Edited my view, so now checkboxes for tags look like:
- @tags.each do |tag|
= check_box_tag("q[tags_id_eq_all][]", tag.id, {})
= tag.name
So in console i can see such query:
Processing by ProjectsController#index as HTML
Parameters: {"utf8"=>"✓", "q"=>{"budjet_gteq"=>"", "budjet_lteq
need some help on ransack filtering.
I have model Project, which has many tags through acts_as_taggable gem.
Project.rb:
class Project < ActiveRecord::Base
include PublicActivity::Common
belongs_to :customer
belongs_to :category
has_many :attachments, :as => :attachab
Hello, need some help,
App is running under Ruby 1.8.7 and Rails 3.0.11
After updating Rails version to 3.1.11, tsrted to fet strange error on new
article page:
http://cl.ly/image/1o0P050d2q41
Don't know where this error could come from, as in controller i have only:
class ArticlesController <
8 matches
Mail list logo