How can I setup Vim for rails development on Ubuntu?!
You're welcome! Btw, you can remove the duplicates of those lines and that should work fine if you want. ```bash export PATH="$HOME/.rbenv/bin:$PATH" export PATH="$HOME/.rbenv/plugins/ruby...Chris Oliver replied • Solved
Learn what is Redis and how to use it with Rails
Awesome! Good luck with your new job!!Chris Oliver replied
has_many through association with collection_check_boxes question not working at create action (kinda)
Testing has_many through association, I want to do that Product has many Category, and Product has many Certificate. Both associations are two-way, and the setups of them, as below, are pretty muc...DC posted
How do I install ruby on rails / RVM on SUSE Enterprise
Hey, good evening. Try to install RVM with the offline mode. After one day, I cannot recall when, the install page does not work any more with me because this providers. Try to follow this li...Kelvin Firmino replied
Webpacker requires Node.js >= 6.0.0 and you are using 0.10.30
Turned out it was actually a **Heroku** issue. I just needed to add a node buildback.Simon Cooper replied • Solved
How to deploy rails on IIS or on Xammp with Apache?
I have **Windows Server R2 2012**, I need to deploy rails app on it. I want to run rails app on either IIS or on Xammp with apache. I tried many solutions posted on the internet but none of them ...Mahmoud Sayed posted
Active Storage (Rails 5.2) vs Shrine
If you need to validate your files, for example validate that only certain file types be uploaded or that some file size constraints (no files bigger than X megabytes) are adhered to, use Shrine. ...Chris Seelus replied
Multitenancy with custom domain names
We have a multitenant application with custom subdomains using a wildcard SSL on Heroku. While this has been great for our clients they are now requesting the ability to add their own domain names....Brent C posted
Okay I subscribed to learn Rails.. but where do I start?
That could be good beginner content, and possibly a place to begin talking about testing. Both more beginner topics and testing are goals for me to cover more in 2018. 👍Chris Oliver replied • Solved
accepts_nested_attributes_for and :reject_if
Hello everybody! I have problem with nested attributes:. My model: ``` class MainTransactionElement < ApplicationRecord has_one :external_source accepts_nested_attributes_for :extern...Bartosz Michalak posted
How to send different Plan ID's to Stripe?
Just rewatched the video and realized Chris suggested hidden fields as the best solution for this. So I got it working by adding these hidden fields to my Stripe form: ``` ``` And modify...Adrian DeGus replied • Solved
How do I save the user_id by adding the mail?
Thanks Jack! As you said, I solve itNicolás Bobb replied • Solved
How to count comments like reddit (infinite nested model) ?
This app has build-in counter tbo blogs.madddee replied • Solved
Logger.debug to output command line results
Thanks Chris, I was able to get required result on logs.Anand Padia replied
How is it done to pass default values in the controller?
Thanks for all your help!! :)Nicolás Bobb replied • Solved
Why rails is not using msgpack?
I was trying to find a way to get better performance out on our solution and I thought that there is a possibility to ge data rendered in smaller bits than json. My research lead me to this article...Anand Padia posted
Rails exceptions from reserved keywords
I keep bumping into exception errors that I believe are due to conflicts from reserved keywords. For example, I have a permit model with the attribute "gross_value." When my view tries to retrie...Simon Fisher posted
Whitelist parameters from a HTML table (Dynamic) and Save to JSONB format.
Hello, Myself Mukheem. I have just started working with Ruby on Rails. I am trying to create a small billing application where a receptionist can bill the items and give the receipt to custo...Abdul Mukheem Shaik posted
How do I cache a complex JSON response (with a lot of belongs_to associations) to be used by Vue.js in the frontend?
Thanks to Chris nice tutorials, we just rewrote a slow interface in our app to use Vue.js. Now Rails is just generating the JSON to be consumed by Vue.js in the view. What I'm trying to achieve...TL posted