Skip to main content
Autocomplete a form field
General • Asked by Benny Maas
Hi, i have the following models: users, markets, assignments, products, sales, a user gets an assignment, and then he should enter his sales for the assignment. i have a sales form with t...
3
posts

¿How make I to upload multiple images with refile?
General • Asked by Saul Felipe Ramirez
¿How make I to upload multiple images with refile?
3
posts

Getting data from one Rails app to another
General • Asked by shakycode
I'll try to keep this as brief as possible. I have a Rails app which is a static codebase and runs on 9 different servers all the same db schema but of course with different values. I wrote ...
1
post

Handle money in Rails
Rails • Asked by Wouter van den Beld
Hi, What do you think is the best way to handle money in rails? At the moment i use a decimal field with a precision if 16 and a scale of 2. the problem is that we use the comma as a decimal...
2
posts

Bug in search
General • Asked by Jerry Clinesmith
If you search for the word "type", it's causing a 500 error. Just wanted to let you know. Thanks for the site! Jerry
2
posts

Why are these partials rendering differently?
General • Asked by Chris Zempel
I’m doing a thing where I’m rendering table rows: ``` ``` Then, inside that partial: ``` ``` ...
9
posts

What happen to the search field for the videos?
General • Asked by Jin Pae
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.
4
posts

How can I grow this search object?
General • Asked by Chris Zempel
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 in...
7
posts

How to compare and write conditions on active record field "time"
General • Asked by sid d
```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 result...
2
posts

CSV Model method and Summing Hours cleanly.
General • Asked by shakycode
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...
7
posts

Clarification needed for simple_calendar sort_by method
General • Asked by sid d
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?(:s...
3
posts

Video Idea: Accepting Credit Card Payments
Site Feedback • Asked by Michael Stitt
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 ...
3
posts

jQuery and Turbolinks not playing nicely
General • Asked by shakycode
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...
1
post

Admin for the specific case
Gems / Libraries • Asked by Jan Lachowicz
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 attri...
3
posts

Coffeescript Instantiation
Javascript • Asked by Chris Zempel
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...
3
posts

Ransack undefined method path in Rails 4.2.1
General • Asked by shakycode
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: ...
2
posts

Ransack undefined method _path in Rails 4.2.1
General • Asked by shakycode
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: ...
1
post

Release GoRails platform subscribers or OSS?
General • Asked by Samnang Chhun
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...
3
posts

Code Challenge idea
General • Asked by shakycode
Chris and I were talking about starting a challenge/kata exercise for the community in Ruby/Rails. Based off of the idea of [Underhanded-C](http://www.underhanded-c.org/), we could post a weekly, ...
6
posts

Help needed on how to create spatial indexing
General • Asked by sid d
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 ...
5
posts

Subscribe to the newsletter

Join 24,647+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.