Install Ruby from binaries on production: do or do not?

3
Ruby
I'm using rbenv with ruby-build plugin as a default way to install ruby for development and production environments. Is there a way to make installation process faster, but keep it stable? For exa...
Alex Musayev replied
Solved

Ruby version stuck on macOS

4
Ruby
Setting up my new MacBook Pro and am running into an issue with ruby versions. At this point I have installed and am usin rbenv. I installed ruby 2.3.1 and when I `ruby -v` that is what it shows. ...
Chris Oliver replied
Solved

Getting an simple Ajax request on Rails

1
Rails
Hey guys, just went through the Notifications videos. To see if I understood the concepts correctly, I tried doing my own solo Ajax request on the forum_threads instead of Notifications. I ran in...
Omar Khedr replied
Solved

Devise User Follow System

3
Site Feedback
Can you make a Follow system with devise that updates via ajax? Thanks!
Alan Reid replied
Solved

Use coffeescript or javascript in rails form to grab model attribute

10
Javascript
I am working on a Rails app and need some help with coffeescript which I'm honestly not very good at. I have a form with a field called location_id using a collection in Rails. ```` <%= f.grou...
shakycode replied
Solved

Having different rails and gems versions installed on dev environment ?

3
Rails
Hi all, I'd like some clarification from someone who's more expert than me, if possible. I'm currently having RVM and Rails *4.2.6* installed on my development environment in which I have built ...
Chris Oliver replied
Solved

Set a start date for Chartkick / Highcharts combination

4
Rails
This is driving me nuts. I'm trying to set a dynamic start date of 1 month ago for a line chart using Chartkick / HighCharts. But can't find the right syntax.
Chris Oliver replied
Solved

error while setting up ruby on rails

1
Rails
I messed up my .bash_profile while installing ruby on rails on mac terminal. I am getting errors like -(bash: touch: command not found) and (.bash_profile permission denied) when i open the termin...
oliver replied
Solved

How do I display a list of Favorited Posts from forum on the User Profile page?

5
Rails
I'm creating a forum and am trying to display a list of posts that have been **favorited** by the current user in the ```users/show.html.erb``` view. When I favorite a post however, then go to my ...
Rob Sturcke replied
Solved

Update and validate multiple entries

5
Rails
Hi friends I got a kinda tricky problem which I usually would do through a nested form, but since I'm writing an API which has some tricky associations I need something custom (I guess): First of...
Jacob Montgomery replied
Solved

How do I submit multiple checked items?

18
Rails
Hi all, can someone guide me in the right direction please? Basically i have dynamic options a user can select 1 or many of these items. I thought checkboxes would be good for this. The user then...
Alan Reid replied
Solved

How do I publish an RSS feed from my rails app?

2
Rails
I have a simple blog setup with a posts model. Is there a gem that can publish a feed or should I create thus from scratch?
Stan Smith replied
Solved

Remove omniauth and convert existing users

4
Gems / Libraries
Hi everyone I have LinkedIn omniauth sign in up and working on my Rails 5 app in accordance with the Devise guide: https://github.com/plataformatec/devise/wiki/OmniAuth:-Overview I have some acti...
Nino Rosella replied
Solved

Rails csv import with associations

8
Rails
I am building a rails application that associates posts with many different categories. For example, I have a Post and need to be able to assign it to the categories Sports, News and Science throug...
Chris Oliver replied
Solved

How do i add a ":unique => true" to an already existing reference?

2
Rails
I have my DB already set up, and it references another table. I need to add in `:unique => true` so i don't get duplicates. I cant however drop the table and start over as there are items in the...
Félix Landry-Audet replied
Solved

Multiple select for CSV Export

3
Rails
Hi there, My users can create a report record which is basically a scaffolded model "**Report**" with controller and views. The users can use this model to create records that a CSV method is usin...
Sascha M. replied
Solved

How do I configure paperclip with capistrano?

7
Servers
Hi, I deployed using the "Deploy Ruby on Rails" guide. However I paperclip attachments no longer work in production. Got the below error: Failed to load resource: the server responded with a sta...
Chris Oliver replied
Solved

Facebook Profile Image & Data using Devise in Rails

1
Gems / Libraries
I'm just starting to learn Rails so please forgive the dumb question. In my web app, I was able to set up devise successfully and then link it Facebook using Omni-auth gem. However, two things occu...
Chris Oliver replied
Solved

store_accessor with jsonb nesting

3
Rails
So Im building a user permits column with jsonb. jsonb column ```permits:{ bar_permit: { key1: [], key2: "Bar", key3: false, key4: false, ...
Francisco Quinones replied
Solved

How do I create hierarchical data with a model?

3
General
I have found and played with awesome_nested_set which is _awesome_ for real. I was wondering if this is the recommended gem for managing tree data in Rails or if there are any others that would do ...
Chris Oliver replied
Solved

Learning Ruby on Rails? Join our newsletter.

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