Save 36% for Black Friday! Learn more

Rails Ruby on Rails Forum

How do I add multiple attachments to Mailboxer?

0
Rails
I am using the Mailboxer gem. I have enabled multiple file uploads for the attachment field. What is the best way to set up my controller so it saves all the attachments? Would making a new model c...
Mehdi Mehrtash posted

How to setup the model associations for a simple e-marketplace?

3
Rails
Hey GoRails devs, I am in the middle of setting up a marketplace (with stripe) and could use some help in conceptually thinking about the model associations. In the marketplace: a user can sell or...
Chris Oliver replied
Solved

Is Actioncable + Redis compatible with APN's?

0
Rails
I built my chat app using rails actioncable and than was able to make an ios app that pulls the conversation and messages. Everything works fine. My question is, is it possible to set up apple p...
Masud Hossain posted

How do I create two buttons that generate CSV files with different attributes?

3
Rails
Hello, I have two questions: 1) I would like to create a button that can generate a CSV file with one set of attributes, and another button that will be able to generate a different set of attrib...
Steve replied
Solved

What are the advantages/disadvantages to using Rails with AngularJS?

3
Rails
Came across a tutorial for using Devise authority tokens in a rails API, however are there any other reasons to use AngularJS and Rails? Advantages or disadvantages? The AngularJS with Rails tut...
Tabish Iqbal replied

why my rails server logs show rendering a page two times, it that normal or there is something wrong with my code? Should it be only single time?

6
Rails
Processing by Users::HomesController#welcome as HTML Processing by Users::HomesController#welcome as HTML Rendering users/homes/welcome.html.erb within layouts/application Rendering users/homes...
naveen kumar replied
Solved

why there is no crsf token when i use remote true with data type as "script" ? How this is different from ajax?

1
Rails
<%= select_tag "event[#{inquiry.slug}]", options_for_select([ "PENDING", "CONFIRMED" ], inquiry.status), :data => {url: update_status_vendor_inquiry_path(inquiry),method: "put", type: "script...
Chris Oliver replied
Solved

How did you become good at back end development / Ruby on Rails?

7
Rails
My introduction to Ruby on Rails was a "complete course" on Udemy and reading Michael Hartl's book. A year's worth of dedicated practice later, I'm still struggling with my skills and understandin...
Alan Reid replied
Solved

Does actioncable create 1 channel per user only?

3
Rails
Let's say you're planning on having real time Notifications and messaging. Does that mean that for each User, there will be 1 actioncable channel (redis) open? Or Does that mean for each Use...
Chris Oliver replied

How do I get e-mailed password change and confirmation links working with devise-token-auth and ng-token-auth?

0
Rails
I am trying to use ng-token-auth (Angular 1) on a separate frontend to allow passwords to be reset and account e-mail addresses to be confirmed on a Ruby on Rails 5.0 backend. Whenever I request a...
Robert King posted

Missing partial error even though lookup context comes back as true.

3
Rails
I'm getting a missing partial error even though my lookup context check comes back as true. My partials is in `views/activity_feed/` and is named `_appointment_set.html.erb` ``` <% @activities.e...
Jacob Montgomery replied

has_many :through association woes

10
Rails
I have a has_many :through relationship between a few models that *almost* works. My goal is to allow users to be assigned to projects and/or tasks. Everything seems to work except user_id's are n...
Adrian DeGus replied
Solved

How to version model validations for an API?

0
Rails
Some thoughts on API versioning: Why is API versioning necessary at all? It is required for when we want to make some breaking changes to an API endpoint, like stop accepting certain parameters o...
TRADEO posted

I want to understand how basecamp separates account?

3
Rails
Is part **3319000** of url 3.basecamp.com/3319000/projects just a show action in the controller or is there implemented by gems? Will be great to see some examples. Sorry for my english.
Dan LeGrand replied

How do I debug why my ActionCable broadcast is returning nil?

4
Rails
Following along with the ActionCable Series. So in **irb** when i run the `ActionCable.server.broadcast "notifications:4", {html: "Hello"}` it comes back with **nil** instead of returning **1**. ...
Matt Taylor replied
Solved

How do I add a default time of 6:45pm to simple form / DatePicker

1
Rails
Hello Folllowing on from the prev 2 posts , How do i add the default time of 645pm in the form. So when someone craates the form a default time of 645 is already setup. I am using simple form and...
david gonzalez replied

Multistep Signup-Form

2
Rails
Hi there, do you know a elegant and quick way to create a signup page like cloud9 have? https://c9.io/signup Thanks a lot in advance!
shakycode replied

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

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

Learning Ruby on Rails? Join our newsletter.

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