Skip to main content
Can I 'alias' a Rails active model to another class
General Solved • Asked by Dan Tappin
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 :...
10
posts

Testing your markdown
Testing Solved • Asked by Jay Killeen
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 | | ------------- |:-------------:...
4
posts

dymanic data filter with jquery
Javascript • Asked by John Munyi
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...
1
post

Save external data in rails db, data structures
General • Asked by Catalin B
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...
1
post

Dynamic select boxes with Rails 4
Javascript • Asked by John Munyi
Hey there I am trying out a dynamic select box with rails 4 and I am stuck on where to put the js code because the form exists in a nested form. So should the code go in the js file for the form ac...
3
posts

How to use the Sentimental gem
Gems / Libraries Solved • Asked by Sascha M.
Hi there, I want to use the Sentimental gem to automatically check if an article is positive negative or neutral. This gem here: https://github.com/7compass/sentimental works fine in the Rails c...
9
posts

Opinion: Namespacing Areas of the Application
General • Asked by Chris Zempel
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...
2
posts

Managed hosting
Servers • Asked by Beau O'Hara
Hi there, I am curious what others a doing for large scale managed hosting. Currently we managing our own AWS and I would like to hand those duties over to a 3rd party. I am looking at Heroku but...
5
posts

Dynamic Pricing based on user country
General Solved • Asked by Enrique Benitez
Hello! I'm thinking of a way to handle dynamic pricing on my web app based on the user country, for example: A user wants to subscribe for a pro account on my website and this user is based o...
3
posts

dealing with authorized parts in fragment caching
General Solved • Asked by Sean M
I have a facebook/disqus like news feed in my app. Every action handled via AJAX on the posts index page. I have hard time figuring out how to do the russian-doll-catching when there are authorized...
5
posts

Opinion: Destroy or not destroy
General • Asked by Dan Tappin
I am working on an app and I have already added the paper trail gem (https://github.com/airblade/paper_trail) to track revisions. Now I am thinking that I want to add Paranoia (https://github.com/...
4
posts

Loop through associated records and deliver as csv
General Solved • Asked by Sascha M.
Hi there, I've watched your CSV export episode and I'm using the exact same code to export the records to a CSV. I've got two tables: Orders and Sales. 1 Order has_many Sales and 1 Sale belon...
6
posts

Pointing a method to a namespace, class, or something (ruby question)
General • Asked by Chris Zempel
I'm building an API wrapper and struggling with how to set it up the way I'd like. Here's an example of what I'd ultimately like this to look like: ```ruby ServiceName::Client.new(api_key).reco...
3
posts

Nofications screen cast
Site Feedback • Asked by John Munyi
Hi Chris , I am following the notifications screen here : https://gorails.com/episodes/in-app-navbar-notifications?autoplay=1 all is well no errors but when i create a post the notifications a...
3
posts

Ajax refresh while persisting params
Javascript • Asked by shakycode
I'm maintaining an old Rails app and am trying to have a my index action use a form_tag to pass the params of a region so I can scope the results of calls by region. This works fine and dandy, but...
1
post

Push bitmap to clients in realtime
General Solved • Asked by Ilya Cherevkov
Hi Chris! I want to create a service which will show a heatmap with some stocks data in realtime (updated each second). Each second there will be around 100 new data points and in general, chart...
2
posts

An other deployment question
Servers • Asked by Romain Nim
Hello everyone! I'm new to Rails (and at coding in general) and english is not my mother tongue, so I might say clumsy stuffs, so please bear with me :D I'm finally ready to launch my first a...
2
posts

jquery.turbolinks not working on my app
Javascript Solved • Asked by Enrique Benitez
I'm using both jquery and turbolinks on my app and because turbolinks don't make full page loads I need some of my js to fire when navigating between pages using turbolinks, I really don't want to ...
3
posts

Polling/Long Polling navbar notifications
General Solved • Asked by Christophe Estanol
Chris I have been using your implementation of navbar notifications and I really like the way it's constructed. I can implement Facebook style notifications and I am pretty happy about it. Howeve...
4
posts

About In-App Navbar Notifications
General Solved • Asked by Christophe Estanol
Chris, thanks for this one. Notifications work like a charm. I was just wondering... How do I create different JSONs for different models? ``` json.array! @notifications do |notification|...
3
posts

Subscribe to the newsletter

Join 27,623+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.