Ruby on Rails Community Forum
What happen to the search field for the videos?
3
General
Seems like the site is currently undergoing some changes, but just wondering if we are getting back the search field for the videos anytime soon.
Chris Oliver replied
How can I grow this search object?
6
General
I've got a domain object I use to search images by whatever tags it has/the year the item in the image was made. It's worked flawlessly in a couple places:
```ruby
class SearchImage
def initial...
Chris Oliver replied
How to compare and write conditions on active record field "time"
1
General
```ruby
Fpclass(id: integer, name: string, start_time: time)
Fpclass.first.start_time
# 2000-01-01 01:01:00 UTC
```
I'm having problem with comparing time field while fetching results as you...
Chris Oliver replied
Page Specific Javascript
4
Javascript
I just came across this article that talks about a gem that allows you to implement cleanly space specific javascript.
http://brandonhilkert.com/blog/page-specific-javascript-in-rails/
However, i...
Greg Cosgrove replied
Clarification needed for simple_calendar sort_by method
2
General
Hi Chris,
I've seen `simple_calendar` ruby gem and i stuck at sort_by method (calendar.rb)
```
def events_for_date(current_date)
if events.any? && events.first.respond_to?(:simple_...
sid d replied
Multitenancy with the Apartment gem
5
Gems / Libraries
Hi Chris Im trying to apply the Multitenancy to a exiting app. at the moment the tenant get create. how can I use the exiting that to be one of the tenant. When I enter with a exiting user to the t...
Francisco Quinones replied
Solved
jQuery and Turbolinks not playing nicely
0
General
Ok, so I'll try to make this brief.
I have a new Rails 4.2.1 app using Ruby 2.2.2 and I'm trying to do a live search on a basic crud model. I have ransack installed and it's working great. But I...
shakycode posted
Admin for the specific case
2
Gems / Libraries
Hello,
I have a problem and just missing the solution.
In my project I have user accounts made in devise that are connected to **Case** model through **Work** model (with *is_admin* boolean attribu...
djyanee replied
Ransack undefined method path in Rails 4.2.1
1
General
I'm working on a simple CRUD Asset Management app and I want to use Ransack. I think I have this setup properly in my view and controller but each time the index view is hit I get the exception:
`...
shakycode replied
Ransack undefined method _path in Rails 4.2.1
0
General
I'm working on a simple CRUD Asset Management app and I want to use Ransack. I think I have this setup properly in my view and controller but each time the index view is hit I get the exception:
`...
shakycode posted
Video Idea: Accepting Credit Card Payments
2
Site Feedback
Most web apps need the ability to accept payments from their users (whether they're automated monthly payments or just simple one time payments). It was such a easy process getting going as a Pro ...
Michael Stitt replied
CSV Model method and Summing Hours cleanly.
6
General
I've made a bit of a mess with my timeclock functionality. Basically what I want to do is pass all of the records in a given search range (which I've already written a model method for and it's wo...
shakycode replied
Coffeescript Instantiation
2
Javascript
I've got a bunch of images thumbnails in an admin area. Wherever one appears, I'd like to be able to click on it, open up a modal with a form, and let the attributes of the image be edited from tha...
Chris Oliver replied
Release GoRails platform subscribers or OSS?
2
General
I'm not sure it's a good idea to release GoRails rails application only to subscribers or OSS. If so, we could benefit from some contributions on whatever features that you have planned to add or t...
Samnang Chhun replied
Help needed on how to create spatial indexing
4
General
Presently i have a list of the places what i've looking for and latitude / longitude numbers for them and i come up with somewhere about spatial indexing to search for nearest locations within my ...
sid d replied
Problems with Routes and Forms (Am I a Newb? What am I missing here?)
3
General
I'm working on my TimeClock functionality for a legacy Rails 3.2.21 app and am running into problems with simple crud type forms.
I'm trying to create a new ClockEvent entry using a basic form in ...
shakycode replied
Using scopes to rank users based on votes they get from their posts
2
General
Hi all, I posted this question on Stack Overflow for a problem I am stuck at.
http://stackoverflow.com/questions/30805987/using-scopes-to-order-users-with-most-votes-for-specific-time-periods
I h...
Ariff Munshi replied
rubber:passenger:add_to_pool takes forever
3
Servers
I'm using Rubber 3.1.0 with Capistrano 2.15.5
When I try to deploy my app(default rails-devise-pundit) to production on EC2, it goes on perfectly till
command finished in 2849ms
triggering after ...
Chris Oliver replied
Multi Site in Rails
3
Rails
Have a Rails app which acts as a API client.
Request may come from 6 different domains.
Each site will have same layout.
Difference between each site would be the theme color , logo and the text s...
Chris Oliver replied
Versioning question.
1
General
I have a website where I would like to offer users the ability to edit the public facing data. However, after the data is edited I need to place the model in que for review. If edits are acceptable...
Chris Oliver replied