Ruby on Rails Community Forum

How do I add a default time of 6:45pm

1
Rails
Hi Following on from the my previous post I want to add a new time column with the default of 6.46pm I have tried this class AddUsualStartTimeToAreas < ActiveRecord::Migration def change ...
Neil Patel replied
Solved

Turbolinks 5 issue when clicking back

0
Rails
Hi all, I'm upgrading my rails 4.2 app to use turbolinks 5 as per the gorails ep but I've ran into a problem. I'm using zurb foundation framework with offcanvas menu when I open the menu and clic...
Adam D posted

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

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

[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

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

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

IBM Watson

1
Tips
ANYONE WITH EXPERIENCE INCORPORATING WATSON INTO A RAILS APP? any resources or tutorials you found helpful? (Sorry caps are acting up)
Stan Smith replied

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

Learning Ruby on Rails? Join our newsletter.

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