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
How do drag and drop builders work?
3
Rails
So many website builders, form builders etc are comming to market. How do these actually work and is it possible to build something like this in rails?
I'm assuming you drag an element onto a canv...
josh edgar replied
Solved
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
Redis on Digital Ocean vs. AWS/ElastiCache
2
Servers
I'm running a Rails app on AWS Elastic Beanstalk / EC2 which also uses ElastiCache / Redis to run background jobs with Sidekiq. If I'm not mistaken, ElastiCache is a completely separate service tha...
Craig DesBrisay replied
Solved
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 to do convert this ImageMagick command and parameters into a Ruby code to be used with Carrierwave
1
Rails
Basically I am asking how to do this:
`convert input.png -bordercolor white -border 1 -set option:distort:viewport "%[fx:max(w,h)]x%[fx:max(w,h)]-%[fx:max((h-w)/2,0)]-%[fx:max((w-h)/2,0)]" -virtua...
W.M. replied
Solved
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
Let's Encrypt Error on Hatch
2
General
I keep getting this error when trying to add Let's Encrypt using Hatch. Im not sure how to debug it.
Any thoughts?
```
Uploaded /etc/nginx/snippets/letsencrypt.conf
Uploaded /etc/nginx/snippets...
Chris Oliver replied
Solved
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