I need to set up a feature where the index page of freelancers can be filtered to only display based on a range on the attribute of price. This needs ...
I need to set up a feature where the index page of freelancers can be filtered to only display based on a range on the attribute of price. This needs ...
I have an API in which i have a HABTM relationship between Characters and Movies (a movie has many characters and a character has many movies). I'm tr ...
I'm building a Rails API from a model Service with several nested relations (many-to-one and many-to-many). The basic index route has a fast enough r ...
I have a Entry model that has_many courses through entry_courses (has_many through association). I've set up my scope as such in my entry.rb (model) ...
I created a scope and pointed it to the array type. And now I want to make this scope working. I tried to pass parameter in url like this: Does ...
There are two tables: User and Industry. User can relate to many industries and a lot of users belong to one Industry. Industry.rb User.rb Indu ...
Basically, I cannot figure out how to prevent the form generator from encapsulating everything in a hash (filter{...}), thus making it easy for the fo ...
I've been struggling with this problem for several days. I'm a lawyer and I'm building a Q&A type site for legal advice (yups, I'm a relative newb ...
I'm using Devise and has_scope gem for filtering options and only want show a current users links only. This works This does not. Can someone ex ...
I'm trying to add a clickable link that will sort a page of links alphabetically using has_scope gem. What exactly would i put in my view to make this ...
I am attempting to combine has_scope and ransack. Each of these components is working perfectly by themselves. However, when I attempt to combine the ...
I've got a two models: Business and Category. In my business#index view, all Business names are displayed in a table, along with their associated Cate ...
This is the error after I run bundle install in rails. I'm using rails 4. I already followed the instruction that given but nothings happen. th ...
In my recent Rails project I have a scope in a model. This scope has two possible values: true or false. I´m using has_scope gem to allow using th ...
I am getting the error below with has_scope. This seems like a really obvious and basic error but I just can't work it out. I'd really appreciate any ...
I'm following git wiki for has_scope. It has an example: So did that: When accessing collection in the view (like collection.each) - getting th ...
Here is my concern file: controllerconcerns.rb Here is my controller I want to include it in: api_controller.rb Here is the error I'm getting: ...
I'm new to rails and I'm using the has_scope gem to help me filter a list to display as a table. I have the has_scope gem setup fine and working for b ...
I have a Rails 4.0.0 app and want to include the has_scope gem. Very simple and straight resources: Model: Controller: current_scopes is alway ...
I'm using the has_scope gem. I want to scope the last x number of items in an array of Articles in my database something like this: so in my quer ...