Ruby on Rails Community Forum
Best practices for self-referential habtm setup?
1
Rails
Basic concept:Patch collecting app. There are issuing entities in the system that issue patches. That model is "issues". In many cases, these are difficult to tell apart. So I want to add a similar...
John Athayde replied
How do I generate dynamic classes?
3
CSS
Is there a way to generate dynamic classes with scss/sass? For example, in my HTML. I want to write div class='mt-10'></div>
div class='mt-7'></div>
div class='mt-3'></...
Alan Reid replied
What's the state of the art for API authentication?
0
Rails
What are the current community approved standards? JWT? Devise Tokens? What's best practices?
Ketan Anjaria posted
Attach image to summernote and send email
0
Rails
I recently implement email in my rails app. I'm using summernote to create email templates and save it. Everything works fine. I can upload image to the editor and save it to database. But when I s...
Lee Terng Gio posted
When to setup associations in Rails db?
0
Databases
I've always wondered if there is a better way to help database query performance in rails by breaking up tables with lots of columns? Any recommendations would be appreciated.Does it make more sens...
Javid Freeman posted
Stripe's new Billing feature explained?
1
Gems / Libraries
Hey Chris!You recently tweeted about Stripe's new billing section: https://twitter.com/excid3/status/981950409509044224You mention that you 'had this idea years ago and never built it.' What exactl...
Chris Oliver replied
I18n access ".title" key with view context in layout
1
Rails
Hi!I try to create a small view helper to manage content for `<title>`.module ApplicationHelper
def page_title(options = {})
app_name = Rails.application.class.to_s.split("::").first
...
Nicolas Brousse replied
Setup Ubuntu 16.10 Yakkety Yak Discussion
0
General
hi
chrisjordan007 posted
How Do I Update Rails Servers from another Rails Server?
1
Servers
I have a Rails Server A in Country A, Rails Server B in Country B, and Rails Server C in Country C, all using Devise and Omniauth.A user can sign up in all 3 servers. But when he logs in to Server ...
Chris Oliver replied
How do I preselect a reference to a resource that is not a parent in the routes?
1
Rails
I have an app with a ContentCategory model that has_many :contents. In the ContentCategoriesController#show view there is a button for "New Content". This goes to the ContentsController...
Jacob Montgomery replied
Having some problems with Using certain data from API calls
1
Rails
Hi i've been struggling for a while now trying to grasp how to use the data received in an api call. A lot of tutorials are either outdated or focus solely on creating API's rather than using them....
kaine Wright replied
Looking for rails programmer
0
General
Looking for a Sydney or Wollongong based programmer. Rails applications
KC Chen posted
Use Devise for two different application in separate machines
0
Rails
hi,I am trying to have my devise database be used by two or more separate rails application. I have pointed my sub-application to use the main application devise database.however, when i log i...
ang nickolas posted
Do you store lots of Stripe customer/billing data in your database or do you call it dynamically from Stripe?
1
Gems / Libraries
Just wondering if it's best to store locally, in my own database, all of the customer's Stripe data or is it better to call for this every time I want to display it?There's a lot of data and it fee...
Chris Oliver replied
How do i create a version carrierwave depending of file extention
2
Rails
Hi,I trying to upload files with Carrierwave in my Rails app, files could be jpg, png, pdf or docx. Files jpg and png upload fine but pdf or docx don't, i get the error "...Minimagick, maybe it is ...
Víctor Soto replied
Devise Secret Key was not set automatically
5
Gems / Libraries
Hi everyone,Strange problem appeared today. I am using Ruby 2.5.1 and Rails 2.5.0.rc2. When installing devise and pushing to heroku I got an error saying that the devise secret key was not set even...
Ariff Munshi replied
file uploads in nested forms with Vuejs and Rails
0
Rails
Hi all,I have a Projects model which has many files and categories. So on my view, I would have a nested form where user can upload as many files and also associate as many categories when creating...
Aman DeMan posted
Improve performance of simple searching method
1
Rails
Hi,I have been building an app these days. The functionality is nothing fancy at all, I have to connect to a client's SOAP webservice, fetch some data, save it into my pg database and build a searc...
Ernesto Gimeno replied
How Do I make my website faster (according to Google and Pingdom)
0
General
Hey there Gang, I ran my website via Pingdom Speed Checker Tools (https://tools.pingdom.com/#!/eFyjYP/flagupmail.com) and have found it difficult to fix three things slowing my site down:I am ...
abebraham posted
Braintree Error In Production Mode
5
Rails
Hi, I have implemented Braintree subscription payment in rails app which followed your tutorial. Everything works well in development, however when I switched to production (I have registered with ...
Lee Terng Gio replied