Ruby on Rails Community Forum

Watchlist Toggle

2
Site Feedback
Hi Chris, Not sure what the origianal intention was regarding the "watch later" button other than marking the specific episode, but I wondered if it could be added to the episode filter options. ...
Chris Oliver replied
Solved

Why do you choose ams (active model serializer) over jbuilder or the other way around? (Rails API)

2
Gems / Libraries
Hey Guys, I'm interested in knowing, why some developers choose ams over jbuilder and some prefer jbuilder over ams, to build Rails based API's. Cheers, Drilon
Dave Woodall. replied
Solved

Use different repositories for frontend and backend?

0
General
I'd like to ask a question. Lets say we have a web app that uses Rails api on the backend and Ember on the front end. The folder structure I guess would look like this: ``` my-app - backend (rail...
Lykos posted

Turbolinks and jQuery compatibility on Rails 5

4
Javascript
I have a hidden field that's activated when clicked on the link using jQuery. When clicking on the link, the field appears just for a second and then disappears. ```javascript $('.use-differen...
Lauro replied
Solved

Routing Error No route matches [POST] when submitting ActionMailer

1
Rails
I have created a form but I'm having issues submitting the form, it's not getting the right route, I'm sure this is a simple fix, I'm just not seeing it. Here are the relevant files: `new.html.er...
Ben John Bagley replied
Solved

On what server is Gorails hosted?

3
Servers
On what server is Gorails hosted? I'm looking for one for a project
Nicolás Bobb replied
Solved

Capistrano Rbenv Bundle Failed

10
Servers
Hi, I'm following this tutorial on deploying rails app https://gorails.com/deploy/ubuntu/16.04 About to reach the last step but it failed when performing bundle install as screenshot below ![](ht...
Navid Shafie replied
Solved

How can I setup Cloudfront CDN for Rails App ?!

6
Rails
It's good to have CDN enabled to speed up rails app but how can I do that with Cloudfront ?!
Anh Vy Nguyen Vuong replied
Solved

EAV Rails way?

4
Rails
Hi Team, I was trying to explore possibility of using EAV (Entity-Attribute-Value) pattern in our application. We are a ecommerce solution and would need Product variants to be captured, I did som...
Anand Padia replied

One form, two separate controllers, created at once.

1
Rails
I'm trying to create a sign_up form where the user will choose his email + password AND and Article at the same time as creating a user account. So assentially, one form will create a new User ...
naveen kumar replied
Solved

How to perform bulk update in rails?

1
Databases
Hi there, Here is the problem in more detail. I tried to perform bulk update on rails model, but ended up with normal save method. I have some number of records and i wanted to update their values...
ankit.k@cisiblabs.com replied

Opt-in to receiving thread notifications

8
Site Feedback
Hey Chris, It would be great if users had the ability to opt-in to receiving new thread post notifications. Sometimes I like to just throw my two cents in, but don't really intend on following th...
Jacob Montgomery replied
Solved

Optimizing Queries in Service Objects

9
Ruby
I'm currently building an app and using namespaced service objects containing a single call method in each class. Below is an actual method (I'm aware the ABC size is too large, I'm wanting to get...
Jacob Montgomery replied
Solved

Is possible to check boolean value by JS?

1
Javascript
In Rails 4 app i need to implement bootstrap modal when user comes for first time and accept the terms. I'm trying to do something like this: **application.html.haml** ``` ... = content_tag :body, ...
Chris Oliver replied

Resource on how to do filters with checkboxes

1
General
I'm trying to create a way to filter my User results based on these filters. I'm looking for a guide with example on how to do this. http://image.prntscr.com/image/07e7113ac239436fa129fa874b5acfa...
Jacob Montgomery replied

`fresh_when` usage for dynamic queries

6
Rails
Hey! I'm recently looking to use `fresh_when` method on my `PostController`. ```ruby class PostsController < ApplicationController def index @posts = Post.published.order(published_at: :...
Alexander Popov replied

How to upload multiple file inputs in rails production?

8
Rails
Hi there, I'm trying to upload multiple file inputs from single form. The form is working fine in development, but in production the form showing that redirecting for long time and returns nothing...
Jacob Montgomery replied

How do I mark content as "seen" or "read" when it's in the user's view?

3
Rails
Hi everyone, I'm trying to mark messages as "seen" when the div has entered the user's view (for example, the Facebook behavior of seen posts). My current attempt is a mix of the Unread gem (https...
Ivan Raszl replied

How to delete records in a join table?

2
Rails
I'm using Refile for uploads and am having a tough time figuring out how to delete individual files. I need to display a delete link under each thumbnail, so my first thought was to do something li...
Adrian DeGus replied

Rail API Knock User Authentication

1
Rails
Application Strucutre **Rails API** user model & controller - CRUD blog model & controller - CRUD comments model & controller - CRUD Standard Blog App with Knock Authentication for acc...
Chris Oliver replied

Learning Ruby on Rails? Join our newsletter.

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