General Ruby on Rails Forum

¿How make I to upload multiple images with refile?

2
General
¿How make I to upload multiple images with refile?
Wouter van den Beld replied

Getting data from one Rails app to another

0
General
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 some...
shakycode posted

Bug in search

1
General
If you search for the word "type", it's causing a 500 error. Just wanted to let you know. Thanks for the site! Jerry
Chris Oliver replied

Why are these partials rendering differently?

8
General
I’m doing a thing where I’m rendering table rows: ``` <%= render partial: "choices_table_row", collection: @images, as: :image %> ``` Then, inside that partial: ``` <%= image.name %&...
Chris Zempel replied

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

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

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

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

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

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

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

SQL injection attempts, any advice?

4
General
Hi there, In the logs of Rollbar for my app [petithacks.com](http://petithacks.com), I have seen in the past 2 days attempts like the ones in the image ![SQL injection attempts](http://static.tum...
Javier Sanz replied

Code Challenge idea

5
General
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, ...
Chris Oliver replied

Restrict Rails Model To Create after Certain Condition

1
General
Requirement:: We have implemented Passport where any user can subscribe to this passport. I want to restrict subscriptions after 20 subscriptions happen. How can we go with this. Any ideas ?
Chris Oliver replied

Learning Ruby on Rails? Join our newsletter.

We won't send you spam. Unsubscribe at any time.