Save 36% for Black Friday! Learn more

Rails Ruby on Rails Forum

How do i print out validation error?

6
Rails
So i'm going through building the forum series and whenever i submit the form, it is just re-rendering the new form page. I looked in my server logs and I see that `Parameters: {"utf8"=>"✓", "au...
Matt Taylor replied
Solved

How do I order by an associations serialised value?

0
Rails
Folowing setup: I got a rails app with dynamic content types. An user can create a content type and add fields (string, integer...) to it. Those are basically the smae like reugale rails models bu...
Andre Zimpel posted

How is routing done with a conditional in url?

5
Rails
Not sure the correct words to ask the question are. Here is an example from what I have seen: `http://www.gorails.com/series/1?old_content=true` So say Chris re-did some of the screencasts,and now...
Matt Taylor replied
Solved

How do I check if runner.interest is not null in this interpolation?

5
Rails
hi i am working on this interpolation where the runners has interests but lets say the runner has not interests , or has not entered any interests how would we interpolate this Your runne...
Jacob Montgomery replied
Solved

How to make form fields to display placeholder text?

11
Rails
I'm working on a project management app that is organized into 3 panes: Project list | Task list | Task details views/_sidebar: has a form to create projects projects#show: has a form to create t...
Alan Reid replied
Solved

How Do i add an "Are You Sure?" button in my update controller

3
Rails
Hi I want add a pop up button that says "Are you sure" when the user clicks on submit ? if it was a destroy mehod it would be something like this method: :delete, data: { confirm: "Are you sure?...
Neil Patel replied
Solved

EMAIL MANAGEMENT BACKGROUND.

1
Rails
Hi, how could I manage emails in the background using devise gem in rails 5? P.S. you know if you can use the "devise-async" gem in rails 5? Regards.
Jamie Barton replied

How do I send Prawn pdf via email

3
Rails
Hello Everyone how do i attaced a prawn pdf to email . I have implemented the prawn gem so when you generate a new form and add the .pdf ot gives me the PDF , which works. but now when the form i...
Chris Oliver replied
Solved

How do I parse this JSON output?

2
Rails
I'm trying to extract the "text" element if the "type" is "Person" from this JSON output. I''ve been able to store the JSON in an instance variable @output and am using the following to begin itera...
Stan Smith replied
Solved

connection.rb in actioncable chatroom series, if not using Devise for authentication?

11
Rails
I'm watching https://gorails.com/series/realtime-group-chat-with-actioncable and i noticed that in channels/application_cable/connection.rb , chris put this code to find verified users. ``` modu...
Masud Hossain replied
Solved

Deployment to EBS - Helo debugging ERROR: CMake is required to build Rugged.

3
Rails
Being trying to deploy my rails app using EBS. I kepp getting the following error. I've tried updating and installing rugged. But the problem seems to be cmake on EBS. CMake is an extensible the d...
Jacob Montgomery replied
Solved

Deploy Fail

4
Rails
HI there guys. Im following this guide: and this is what i get ``` rvm 1.28.0 (latest) by Wayne E. Seguin , Michal Papis [https://rvm.io/] ruby-2.3.1 ruby 2.3.1p112 (2016-04-26 revision 54768) [...
Jorge Dominguez replied
Solved

How to Upload Video using video encoder FFMPEG?

1
Rails
Is there any resources or tutorials about uploading videos(songs) through Carrierwave and using Video.js ? I heard also that I should use encoding(ffmpeg) if I want to upload.
Chris Oliver replied

Excluding Assets Pipeline gems while running Rails in production

5
Rails
I've been thinking, since assets compillation suppose to be performed during production deployment, it is irrelevant to make Bundler to require `uglifier`, `sass-rails`, `therubyracer` and may be s...
Alex Musayev replied

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

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 - Importing CSV file

13
Rails
I've tried to follow along with Chris' tutorial on importing records from a CSV file. I cant get the file to upload. I've posted loads of quesitons on the discussion board for the first video in...
Melanie replied

Learning Ruby on Rails? Join our newsletter.

We won't send you spam. Unsubscribe at any time.