Ruby on Rails Community Forum
Get Paperclip file before save
2
Rails
Is it possible to read the file, in my case image file, inside Paperclip::Attachment before the file is saved?
I need to send the image to an api first and then from the response it's given if it...
Agung Setiawan replied
Solved
Is it Ok to use "Error" as a model name in Rails project?
1
Rails
I have a simple question about class naming: is it Ok to use `Error` as a model name in a Rails project?
This model will be used to persist Ruby exception objects for errors monitoring. Using `Exc...
shakycode replied
Solved
error when i click on follow button ... Relationship is not working
0
Rails
All i am trying to create follow and follwers relationship and i am experiencing some issues. Chris i think you should create a course on this as well. i am getting issue undefined method `id' for ...
khemlall mangal posted
Actioncable production settings when using heroku + custom domain
1
Servers
So I built a website and pushed it to heroku production `example.herokuapp.com` and bought a domain to reroute example.com to show whatever is on `example.herokuapp.com`.
This all works great, exc...
Masud Hossain replied
Creating nested attribute with two parent attribute.
1
Rails
Hi,
Been going round in circles for a day or so but still can't seem to find a solution for this. I have project management chat app that on sign up, you create the project and the first chat mess...
Ariff Munshi replied
Solved
After I submit(click) the form(submit input tag), the submit tag become disabled, how can I avoid this?
3
Javascript
The purpose is add product to cart, target is blank.
After I submit(click) the form(submit input tag), the submit tag become disabled, how can I avoid this?
I need it is always enabled for click....
Patrick Berarducci replied
Administrator creates user accounts with Devise gem
0
General
I have a project with Devise gem. I need to create a user with the admin account. If I am logged in with the admin account I can not enter the path / sing_up. How can I access this page?
Nicolás Bobb posted
Multi tenant best strategy
5
Gems / Libraries
Hi,
I'm creating a multi tenant application using the apartment gem based on the video about multitenant here in gorails.
The model I choose was the Account instead of Users so I can have several...
Giancarlo Corzo replied
Solved
Caching static pages without CSRF token
4
Rails
Hi,
I'm looking to use `expires_in` method in my actions who returns static content.
For this pages I would like to return a cache control header where `public` is `true`. Like this it allow an p...
Nicolas Brousse replied
Solved
Mention
1
Rails
hi Chris Oliver on the @mentions episode can you share the css you use to show both user name and profile picture?
Thanks
Chris Oliver replied
After adding the activeadmin gem, my previous style changed, How can avoid this?
2
Gems / Libraries
After adding the activeadmin gem, my previous style changed , How can avoid this?
Previous style is :

After adding the activea...
Larry Qu replied
Solved
cancel actioncable connection for unauthorized users?
0
Rails
Followed the series on action cable notifications and setup the meta tag so that action would not try to connect if the meta tag was present. Here is my code.
```
$(document).on("turbolinks:load"...
Matt Taylor posted
Mailboxer: How to attach a file when starting a new conversation
0
Rails
I am using the Mailboxer gem. When creating a new conversation, the message that is created at that point is does not attach the file I am uploading.
new.html.haml
= form_tag conversations_path, m...
Mehdi Mehrtash posted
How do I add multiple attachments to Mailboxer?
0
Rails
I am using the Mailboxer gem. I have enabled multiple file uploads for the attachment field. What is the best way to set up my controller so it saves all the attachments? Would making a new model c...
Mehdi Mehrtash posted
How to setup the model associations for a simple e-marketplace?
3
Rails
Hey GoRails devs,
I am in the middle of setting up a marketplace (with stripe) and could use some help in conceptually thinking about the model associations. In the marketplace: a user can sell or...
Chris Oliver replied
Solved
Is Actioncable + Redis compatible with APN's?
0
Rails
I built my chat app using rails actioncable and than was able to make an ios app that pulls the conversation and messages. Everything works fine.
My question is, is it possible to set up apple p...
Masud Hossain posted
How do I create two buttons that generate CSV files with different attributes?
3
Rails
Hello,
I have two questions: 1) I would like to create a button that can generate a CSV file with one set of attributes, and another button that will be able to generate a different set of attrib...
Steve replied
Solved
Proper location for null objects
2
Ruby
I've recently watched couple of screencasts on using Null Object Pattern: https://www.rubytapas.com/2017/01/31/two-screencasts-two-ways-eradicate-ruby-nil-values It was a good reminder about a ques...
Dan LeGrand replied
Solved
What are the advantages/disadvantages to using Rails with AngularJS?
3
Rails
Came across a tutorial for using Devise authority tokens in a rails API, however are there any other reasons to use AngularJS and Rails? Advantages or disadvantages?
The AngularJS with Rails tut...
Tabish Iqbal replied
why my rails server logs show rendering a page two times, it that normal or there is something wrong with my code? Should it be only single time?
6
Rails
Processing by Users::HomesController#welcome as HTML
Processing by Users::HomesController#welcome as HTML
Rendering users/homes/welcome.html.erb within layouts/application
Rendering users/homes...
naveen kumar replied
Solved