Ruby on Rails Community Forum
Updating a genre in a nested association
2
General
I've been asking a few question on scraping and nested association. Im running into another issue which is updating genres to each anime.
I'm getting a list of genres, for example "Action, Romance,...
Wes replied
How can I solve it?
10
General
Hello guys I have a problem with this!
I'm making my website where user can give feedback to my projects, contact me and make comment to a blog_post.
The problem is when i make the render 'blog_p...
Federico Calarco replied
Solved
How do I include a placeholder for empty notifications
2
General
Your In-App Notification code worked perfectly.
However I'm stuck on what code to use to display a placeholder message if there aren't any notifications.
You mentioned this briefly in the episode ...
Stan Smith replied
Solved
Limit CSV export by Day, Week and Month
1
General
Hi there,
is there an easy way to limit the results inside a CSV export to a specific time-frame, like day, week and month?
Thanks!
Chris Oliver replied
Solved
How do i update an attribute for belongs_to association when scraping a site?
5
General
So pretty much a `anime` belongs_to :season and a `season` has_many :animes.
I'm scraping a site and i'm collecting the season like "Spring 2015". I want to be able to assign "Spring 2015" to a ani...
Chris Oliver replied
Solved
Screencast Request: Authorization with ActionCable
5
Site Feedback
A cast about how to do authorization with ActionCable. Example is a Chat with multiple chat rooms and messages should only be sent to rooms / people who have access to the given chat room.
Chris Oliver replied
refactoring polymorphic actions
0
General
Hi Chris! I implemented the notification system based on your video with the partials. Works perfectly. I've got some problem though when user wanna check out the notification. When he/she clicks ...
Sean M posted
How to by pass a string that has '???????' when scraping for dates and turning the date into an integer?
6
General
I'm scraping a anime information website. Right now, I'm trying to get the date going, but on some of the anime the date comes out as ???,??,????. I'm tying to figure out how to skip that or put so...
Wes replied
Solved
How to build REST APIs?
14
General
Hi Chris
Yesterday I was just wondering that how can I build an app which follows REST principles. I searched on many articles and they are in too much nitty-gritty with less examples of how to cr...
Sean M replied
Getting googlemaps javascript and turbo links working together
5
Javascript
Hey Chris - been struggling with this off and on for a bit now. Just trying to add basic google maps using the javascript API (not the gems) to a rails 4.2 app and am having all of the various is...
Greg Blass replied
Rails console hacks :)
2
Rails
Hi there,
I need some help how to handle the rails console commands. I'm really stuck here..
I've recently added a new column (teams) to my Sales and Orders model. Both models containing the user...
Chris Oliver replied
Solved
How do I use Let's Encrypt to get and automate SSL on ubuntu, nginx server
7
General
I was thinking maybe this could be a tutorial/guide request?
I always use the GoRails guides to setup my ubuntu, nginx, passenger servers(thanks!) I am having trouble figuring out how to use Le...
Chris Oliver replied
data consistency for invitation registration
9
General
Hey!
At the moment I have a user and a product table and products are created by users. So the user can create his own product he is working on. User `has_many :products` and `product belongs_to :...
Sean M replied
Solved
Dynamically Defined has_many with odd behavior
4
General
Here's a quirk that's confounding me:
Data Model:
```ruby
class Athlete < ApplicationRecord
has_many :stats
end
class Stat < ApplicationRecord
belongs_to :athlete
belongs_to :posit...
Chris Zempel replied
dymanic data filter with jquery
0
Javascript
Hi Chris I want to replace the create action of my app with dynamic jQuery data pulling so that user has a chance to see the data pulled from the DB before the actual create happens , so currently...
JM posted
Can I 'alias' a Rails active model to another class
9
General
First off I am sure I am not asking this question correctly as this is an advanced Rails topic over my head right now. Here is what I have for routes:
concern :assetable do
resources :ass...
Chris Oliver replied
Solved
Testing your markdown
3
Testing
I see your markdown tables aren't being rendered as tables. I have the same problem :( Any idea how we get this fixed?
| Tables | Are | Cool |
| ------------- |:-------------:| -...
Chris Oliver replied
Solved
Save external data in rails db, data structures
0
General
Hello,
I need some help/advise on how to save third data in my database, also I'm interested in any tutorial or info about these topic.
I'm struggling to save data from third party api.
I get the...
Catalin B posted
Opinion: Namespacing Areas of the Application
1
General
I'm working on an application related to a specific sport. A large deal of the value of the application revolves around being able to track different stats by player by position by season.
There a...
Ian Gray replied
Error: uninitialized constant HTML::Pipeline::SyntaxHighlightFilter::Pygments when installing html-pipeline
5
General
I am getting an error:
`uninitialized constant HTML::Pipeline::SyntaxHighlightFilter::Pygments`.
my Gemfile shows:
``` ruby
# markdown in comments
gem 'html-pipeline', '~> 1.11.0'
gem 'github-...
Lauro replied