Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue when using ransack with rails_db gem #700

Closed
igorkasyanchuk opened this issue Jul 17, 2016 · 2 comments
Closed

Issue when using ransack with rails_db gem #700

igorkasyanchuk opened this issue Jul 17, 2016 · 2 comments

Comments

@igorkasyanchuk
Copy link

Hello, I've noticed that new version of ransack doesn't works with rails_db gem (it's using it for search). Issue is connected with removing namespace "Ransack" from "Constants" module. Could we do something to fix this issue? Maybe revert this namespace back?

I believe this is true also for other gems.

ActionView::Template::Error (uninitialized constant Ransack::Constants::ASC):
47:


48: Sort:
49: <%= f.sort_fields do |s| %>
50: <%= s.sort_select %>
51: <% end %>
52:

53:
<%= f.submit "Search", class: 'button small' %>

ransack (1.8.0) lib/ransack/helpers/form_builder.rb:179:in sort_array' ransack (1.8.0) lib/ransack/helpers/form_builder.rb:70:insort_direction_select'
ransack (1.8.0) lib/ransack/helpers/form_builder.rb:75:in sort_select' /Users/igorkasyanchuk/Projects/rails_db/app/views/rails_db/tables/_data.html.erb:50:inblock (2 levels) in ___sers_igorkasyanchuk__rojects_rails_db_app_views_rails_db_tables__data_html_erb___4579710676106818382_70233866914900'
actionview (4.2.4) lib/action_view/helpers/capture_helper.rb:38:in block in capture' actionview (4.2.4) lib/action_view/helpers/capture_helper.rb:202:inwith_output_buffer'

@jonatack
Copy link
Contributor

jonatack commented Jul 19, 2016

Thank you, @igorkasyanchuk 💜. Can you try rails_db with ransack master and let me know?

@igorkasyanchuk
Copy link
Author

thanks but I've found another issue, I will post more details to other existing issue #701

prasadsurase pushed a commit to prasadsurase/ransack that referenced this issue Sep 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants