Retrieve all Project Threads where a given users has posted a Project Post

3
Ruby
A user belogns to a ProjectThread. And a ProjectThread has_many Users through ProjectPosts. On the Project Thread Index I want to display only threads where a given users has posted a Project Pos...
Jacob Montgomery replied
Solved

Problem associating nested resource with Devise current_user method

4
Rails
I need to assign the current_user ID to all new projects, tasks and comments created in my app. I got projects and tasks working fine, but for some reason comments are giving me trouble. Here's wh...
Adrian DeGus replied
Solved

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

[Feature Request] Ask for Topic/Episodes/Series

2
General
So hello guys, All of us have great ideas, and all of us want to know whats next episode would be. So this is my idea. List of Topics with likes. Everyone can enter the topic that would like mor...
Jorge Dominguez replied
Solved

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

Can I assign dates to display a link?

1
General
Hello, I'm doing an application where I have to show a link. The administrative must be able to assign the date where it is displayed and hidden. Sorry for my English. I think it's done with the ge...
Alex Musayev replied
Solved

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

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

Learning Ruby on Rails? Join our newsletter.

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