
Add paywall functionality to app
3
Rails
I would like to offer people x views of certain pages then prompt them to pay for access.
I was looking ot use this gem acts_as_paywall - https://github.com/BarefootCoders/acts_as_paywall
but wante...
John Sanchez replied
Solved

Are there any reasons why my Helper methods are not picked up?
1
Rails
Hi
I have a helper method, which converts currency to pounds. Is there any reason why this donest get picked up in the mailer templates, but works thoughtout the rest of the site?
Chris Oliver replied
Solved

Tagging Posts(Or whatever) in rails without any gems
3
Site Feedback
I've been creating a test app for a couple of weeks know, and want to have a tagging system. It would also be cool if it was polymorphic, so multiple models could have tags.
Thanks!
TRADEO replied
Solved

Changing currency
2
Rails
I would like to change the currency in my app for each site.
So i currently have **`number_to_currency(aNumber, :locale => :gb)`** which works well. I have a number of sites which use different...
Alan Reid replied
Solved

Can I move parts of Shrine config to environments?
6
Rails
I am using Shrine as you described in your *Direct File Uploads to S3* episodes. It works fine, although I had to make a few minor tweaks to suit Bootstrap 4. One thing is troubling me: all files a...
Chris Oliver replied
Solved

5.0.1 out of RC?
4
Rails
I just did a `bundle update` and my app updated to Rails 5.0.1, it looks like this may have come out of RC. However there is nothing on their site yet. However their github is stating the buuld is ...
Chris Oliver replied
Solved

SEEKING FREELANCER - Javascript configuration
17
Javascript
I have been trying for 4 years and 3 months to try to setup a basic rails app.
I have bought 10+ books, subscribed to this and several ohter subscription services to try to learn the basics of rai...
Melanie replied
Solved

Apartment and Sidekiq
4
Rails
So Im working with apartment and sidekiq and the job is not switch tenant.
```
gem 'apartment', '~> 1.0', '>= 1.0.2'
gem 'sidekiq', '~> 4.0', '>= 4.1'
gem 'apartment-sidekiq', '~> 0...
Francisco Quinones replied
Solved

Meaning of “Expected string default value for …”
6
Rails
So i am starting a new project, and have done this meany times now. However this is the first time i have hit this issue!
I created the app as normal **`rails new myapp -d postgresql`**
I've crea...
Alan Reid replied
Solved

Jekyll, MiddleMan or CMS for a blog site?
3
General
Hi guys,
I've build quite a few production apps now with rails and I'm embarking on my latest project which is a niche blog site. I guess going with rails is a bit of an overkill with this one so ...
Alan Reid replied
Solved

How do I iterate over an array of nested hashes in a view?
7
Ruby
I have an array that has nested hashes of months, years and amounts that I want to diplay in a table. My data is in this format:
[{:month=>"January", :years=>{2017=>20, 2018=>100, 201...
Jacob Montgomery replied
Solved

Should I use a gem like paperclip or carrierwave to handle PDF and docx uploads?
4
Rails
Hey guys,
has anyone advice on this one? Are there maybe better ways to handle document uploads in rails?
Alan Reid replied
Solved

DRY Validations for Similar Models
4
Rails
In my app I have restaurants which have a name, address, state, zipcode, country, and some other stuff. These restaurants have many locations, and each location belongs to a restaurant. The locatio...
Sillico replied
Solved

how do implement a rails popularity/trending algorithm
3
Rails
I'm making a web app and I want to sort through a model based on popularity/trendiness, kind of like reddit/hacker news.
I want to determine the popularity based on the count of comments, likes, an...
Samuel Janes replied
Solved

Install Ruby from binaries on production: do or do not?
3
Ruby
I'm using rbenv with ruby-build plugin as a default way to install ruby for development and production environments. Is there a way to make installation process faster, but keep it stable?
For exa...
Alex Musayev replied
Solved

Ruby version stuck on macOS
4
Ruby
Setting up my new MacBook Pro and am running into an issue with ruby versions.
At this point I have installed and am usin rbenv. I installed ruby 2.3.1 and when I `ruby -v` that is what it shows.
...
Chris Oliver replied
Solved

Getting an simple Ajax request on Rails
1
Rails
Hey guys, just went through the Notifications videos. To see if I understood the concepts correctly, I tried doing my own solo Ajax request on the forum_threads instead of Notifications.
I ran in...
Omar Khedr replied
Solved

Devise User Follow System
3
Site Feedback
Can you make a Follow system with devise that updates via ajax? Thanks!
Alan Reid replied
Solved

Use coffeescript or javascript in rails form to grab model attribute
10
Javascript
I am working on a Rails app and need some help with coffeescript which I'm honestly not very good at.
I have a form with a field called location_id using a collection in Rails.
````
<%= f.grou...
shakycode replied
Solved

Having different rails and gems versions installed on dev environment ?
3
Rails
Hi all,
I'd like some clarification from someone who's more expert than me, if possible.
I'm currently having RVM and Rails *4.2.6* installed on my development environment in which I have built ...
Chris Oliver replied
Solved