Rails Ruby on Rails Forum
Problem with deletion and recreation of same association
5
Rails
I have a user model created through devise, a stock model (generated through a scaffold) so I can create a stocks database with my own custom prices, and a UserStock model to establish an associati...
Ohad Dahan replied
Solved
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
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
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
How to attach "users" to a tenant/tenants with Rails multi-tenancy/apartment
11
Rails
Hey guys,
Have been watching some great videos on multi-tenancy with Rails but one thing I can't quite get my head around.
If a `User` remains global, what is the best strategy for giving them ac...
Tabish Iqbal replied
Solved
Stripe Subscriptions: Duplicate Customers
14
Rails
Hey Eeveryone,
I'm creating a subscription site using Stripe v3. For the most part everything is working fine, but I noticed in my Stripe Customer dashboard there are duplicate customers (for all ...
Stephen Swann replied
Solved
assign_attributes not working
2
Rails
I just signed up for Payments with Stripe and Rails Master Class and am loving it...can't walk away from it; learning a ton!
Having an issue though and was hoping someone could lend a hand. I am f...
Chris Oliver replied
Solved
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