Ruby on Rails Community Forum

ElasticSearch 400 error.

3
Rails
Hello! I am pretty new to Rails and recently signed up to try to get some more exposure. I have been playing around with Elastic Search, but am having a hard time implementing some of the more ad...
Georgia A replied

Trouble with part 3 of Direct Uploads to S3

0
Rails
I am working through your Direct Uploads to S3 series and have run into a snag that I am hoping you can help with. Everything has worked as advertised UNTIL I added the js in episode 3. Now I am ...
scott tallarida posted

Devise User Follow System

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

Could you make a ActiveAdmin episode?

2
Site Feedback
Was browsing and found out about ActiveAdmin and thought it would be pretty cool to work with. http://activeadmin.info Best, -Rob
Rob Sturcke replied

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

simple_format and Embedded content

0
Rails
I currently have a part of my website where people can submit user generated articles. I use simple_format to retain the layout. e.g. `<%= simple_format(@post.content %>` As more and more ...
Tony posted

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

Can you use Actioncable for multiple things in your project?

1
Rails
I want to use actioncable to pull notifications AND also use it for user to user chatting. Is this possible and pain free to do? I guess what i'm asking is, can i join these two videos together i...
Chris Oliver replied

Send an Email On a Date Specified in a Database Column

1
Rails
I have what I think is a working setup to send emails via `Delayed_Job`. However, I haven't received my test email and it isn't practical to wait for more to happen with a delay of days. I need t...
eminkel replied

How do I populate form control with data from database ? the RoR way..

3
Rails
Hi there, this is very basic thing but How do I populate controls in my form with data from database ? For example let say I want to create a Invoice / Order of items from my product list. I must...
Alan Reid replied

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

Need another series on Rails with Angular 2

4
Javascript
:)
Pardha replied

Streaming CSV Output to the User's Browser

2
General
Hello, I'm referring to https://gorails.com/episodes/export-to-csv?autoplay=1 is there an easy way to add a function to actually stream the file contents to the User's Browser, like described her...
John Meehan replied

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

Learning Ruby on Rails? Join our newsletter.

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