Ruby on Rails Community Forum
Importing datasets. Recommendations?
5
Databases
I have a few datasets that I need to import into my rails app. They vary from 100 records to 5000 which will span across a few models with various associations.
Q.1: I can cleanse the data prior ...
shakycode replied
How to create a dynamic form for Contest/Giveaway app
10
General
I've got two models, Contest (has many entries) and Entry (belongs to contest). When I create a contest I want to be able to add some questions that would be dynamically added to the entry form... ...
Fernando Contreras replied
Dynamic Active Record Associations?
7
General
Trying to wrap my head around the best way to handle this.
I have an Event Model that has_and_belongs_to_many :event_types
in my Event model I currently have a column for price..
However, what I ...
Chris Oliver replied
Hosting static images in subdirectories of Public on nginx
11
Servers
Hey Chris (and others),
Switched to nginx from Apache and following the deploy guide for Ubuntu 14.04. My app (which is 3.2.X and Ruby 1.9.3) no longer serves the static images I store in public f...
shakycode replied
Build REST API with Devise
1
Rails
Hi Guys, I've been struggling building an API for an iOS App to communicate with my Rails Web App. For authentication, I'm using Devise.
How do I create, update and delete a user through the API?...
Chris Oliver replied
Radio buttons as actual buttons
5
CSS
Hey all,
I am trying to convert a form with radio buttons such that the radio buttons are just plain buttons. When selected they should have an active class and register the selected choice. I'v...
Chris Oliver replied
Markdown/Emoji : how to host images?
2
Site Feedback
Hi,
I watched https://gorails.com/episodes/markdown-emoji-with-html-pipeline-gem and I'm wondering 2 things :
* Where did you find the asset_root of the emoji images?
* How do you use your own Em...
Muhammad replied
Devise with additional user fields, nested models / attributes and custom routes
3
Gems / Libraries
I have posted a few related questions on this but now I am at a road block. I had this system working quite well and then I went to add to it and now I broke it real good!
First off I just discov...
Chris Oliver replied
What's the rationale for making some videos "Pro Episode"?
1
Site Feedback
Just out of curiosity, how do you decide which episode is a "pro" episode vs regular?
Chris Oliver replied
Suggestion: links open in a new tab
1
Site Feedback
I know this may be a personal preference, but I've always found it more user-friendly (from a student's perspective) to have the links (i.e. your github code and forum) open in a new tab.
Chris Oliver replied
Advanced routing setup
7
Rails
I recently watched the [look into routing video](https://gorails.com/episodes/a-look-into-routing). I have a very complex routing scenario I have been asked to set up for work. I was hoping I cou...
Chris Oliver replied
Other intermediate-advanced ruby/rails websites?
3
General
Hi,
I don't know if it's allowed here, to talk about other resources to learn Rails and ruby, but I'm looking for more intermediate-advanced guides and/or screencasts that are up-to-date
I'm real...
shakycode replied
BDD in a real project
4
General
Hi, Chris,
I just subscribed to GoRails. Thanks for bringing us this great site. I really enjoy watching episodes, and I believe Go Rails has the potential to become one of the major resources fo...
Joe Guerra replied
Tracking Rails App Usage with Analytics
3
Rails
Hi
I notice this site uses Google Analytics to track usage. Is that the standard when it comes to tracking your rails apps? I know it is generally pretty standard in the case of my websites but fo...
Chris Oliver replied
Updating Nested Form / Model Attributes
1
Gems / Libraries
I have a nested form on a Devise signup page. The user signs up and then they also fill out their company info (Name , Address etc.). My User and Company model are associated through a Role model...
Chris Oliver replied
Bootstrap Devise User create, edit and sessions new
2
CSS
Hi All
I had some difficulty following this https://gorails.com/episodes/user-authentication-with-devise - screencast when it came to Bootstrapping devise.
Chris' looked like a bit of extra editi...
Jay Killeen replied
Multi-event .ICS file generation?
11
Rails
Any suggestions for generating an .ICS calendar file containing multiple events from my models? Any experience with Gems(iCalendar vs Ri_cal), or anyone know of good blogposts, etc. detailing the ...
kayhtee replied
Using Pundit with ActiveAdmin
14
Gems / Libraries
Hey, I'm using pundit with active admin and getting this error message
Pundit::AuthorizationNotPerformedError in ActiveAdmin::Devise::SessionsController#new
In the pundit video you show us
in...
Dan Tappin replied
Creating & Installing SSL Certificate on DigitalOcean Ubuntu 14.04 VPS
7
Servers
Your [tutorial](https://gorails.com/deploy/ubuntu/14.04) on configuring a VPS on DigitalOcean for a Rails app is great! This came in super handy while I was creating mine!
Can you explain to me t...
Chris Oliver replied
Wrong Ruby version with Postgres user
4
Ruby
I'm having a difficult time understanding the postgres section. I've setup a postgres user but when I type "ruby -v" with that user I get 1.9.3, whereas with the deploy user I get 2.1.3 (the correc...
Jeff See replied