Ruby on Rails Community Forum

Rails app configuration on production server

0
Rails
I want deploying Rails 5 app using Nginx, Unicorn, Postgres and Capistrano on centos 7.so which guide is best ???
Aqib hameed posted

Layout for Devise with scoped route

3
Rails
Hey Everyone, I'm trying to use a custom layout for my `devise/registrations#edit` view. I'm using a scoped route. ``` devise_scope :member do get "/members/:id/settings" => "devise/registrat...
Jacob Montgomery replied

Jquery destroy seems to fire twice.

1
Rails
Hi I get the confirm msgbox "are you sure" twice and have to OK it twice: <%= button_to 'Remove', line_item, method: :delete, data: {confirm: 'Are you sure?'} %> In controller: def destr...
Ohad Dahan replied

Recommended Gems - share them here :)

0
Gems / Libraries
Most of my recommendations are performance oritented but I'll be happy to hear about Gems that can help in other domains. 1. PGHero https://github.com/ankane/pghero , great to keep track of your d...
Ohad Dahan posted

Best approach for combining Rails and Javascript

3
Javascript
So I am fairly new to rails dev. I have built several small apps in rails and javascript. There is such much chatter about different frameworks. I am wondering what the best approach would be to...
Ryan Steen replied

How to write this raw SQL query in Active Record Query Interface

0
Rails
Here's the SQL: ``` select s.name, p.name, count(i.id) as count from items i left join products p on p.id = i.product_id left join stores s on s.id = i.store_id group by p.id, s.id ``` Thank you.
W.M. posted

How to model and integrate a rails mutliple choice quiz?

0
Rails
I am trying to make a little app where users can sign up, login, and be able to view and interact with questions for educational purposes. I can visualize everything, but I'm having trouble transl...
johny kopparapu posted

How can I add an avatar using (Carrierwave) to the ActionCable Chatroom Project?

0
Rails
The code that I have below is for the _message.html.erb partial ``` <% if message.user.user_profile.avatar.profile_thumb.present? %> <%= image_tag message.user.user_profile.avatar....
Darion Wood posted

ActionDispatch::Cookies:CookieOverflow in controller

1
Rails
I am getting error while accessing rails application, which was working fine earlier, "raise CookieOverflow if options[:value].bytesize > MAX_COOKIE_SIZE" Could some one help.
Chris Oliver replied

Biometric fingerprint reader integration with rails

1
Rails
Hello, Can any one know howw I can integrete biometric fingerprint reader machine with my rails application, for automated attandance of student. Please help, its urgent. Thanks in advance.
Yazhini replied

Group Chat with ActionCable Unread Messages Div Appearing on Messages I send

0
Rails
I just finished episode 7 of Group Chat with ActionCable. When I send a message, the "unread messages" div appears in the browser window of the sender as well as the recipient's window. Any ideas w...
Rex posted

Update next_billing_date in Rails App with Braintree

0
Rails
Hi, I recently developed a Rails app using **Braintree Recurring**, when the user subscribes, the information such as plan_name, next_billing_date ware saved into the database. However, I found the...
Lee Terng Gio posted

Integrating Turbolinks into rails 5 app

0
Gems / Libraries
Turbolinks has been giving me a world of trouble and there is a lot of randomness with it depending on where I put it in the application.js file. Right now I have this: ``` //= require jquery3 //...
Alex Deering posted

How do I have SubDomain and Multi-Tenant in Rails project.

3
Rails
Can anyone please expain me How do I have sub-domains and Multi-tenant database for each sub domain in Rails Application. For an Example:- I am having Multi-Tenant database for year wise record o...
Gourav Lele replied

Upload in webview

2
Rails
I have a Rails web application, and I hired someone to develop an android and iphone app for it, which is just a webview opening the website. In the web app, the user can upload an avatar picture....
Rafael Soares replied

Open position

0
General
Hi Chris! Adam Wilson at LaunchCode suggested I reach out to you regarding a ruby developer position I'm looking to fill. As you might guess, it's tough to find an experienced ruby developer in S...
Dana Neuhaus posted

How do I integrate the local_time gem without using the asset pipeline?

1
Gems / Libraries
How do I add the local_time gem to my project without using the asset pipeline as shown in one of the tutorial videos on building a user forum (https://gorails.com/episodes/forum-time-zones-with-lo...
Chris Oliver replied

JSON Web Tokens with Devise & Warden (--api)

0
Rails
Hello, You can create an episode with the same typology ( https://gorails.com/episodes/jwt-with-devise) using a project of this type: rails new weather --api thank you regards
Antonio F. posted

Youtube text transcription

1
Rails
Hello, i'm wonder if there's a way to get the youtube caption text after being autogenerated by youtube itself? Thanks a lot, @Carlitos
Miguel replied

How does Chris open NERDTree by default when he runs "mvim ." ?

2
Tips
When I open a directory with mvim, I don't seem to be getting nerdtree. Instead, I get the regular directory buffer that is styled like nerdtree. When I open a file from this regular tree view, it ...
Ohad Dahan replied

Learning Ruby on Rails? Join our newsletter.

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