Putting SignIn and SignUp in single page using devise rails

2
Rails
Is it possible to have sign in and sign up forms on the same page,and after sign in or sign up redirect to the index page?like twitter or facebook?
Alvi Mahadi replied
Solved

Is anyone using Rails 5 yet?

6
Rails
The setup guides on the site recommend using Rails 4.2.6. I'm curious to know if we should be using Rails 5 now as it's been out for almost a month? Cheers
Alan Reid replied
Solved

Devise redirects to /users when there is an error editing profile

6
Gems / Libraries
I would like to know how i can change the redirect path so that when my editing a user fails it redirects back to `users/edit` and not to `/users`. To replicate this i am entering a duplicate emai...
Alan Reid replied
Solved

Is there a good reason to not use keyword arguments always?

1
General
I have used keyword arguments for some of my methods before, but haven't really thought about why not use it for all methods with arguments? Seems like there is no good reason to have the caller ...
Chris Oliver replied
Solved

Is it possible to manually mark as watched an episode?

1
General
Hi Chris. Would it be possible to add a feature on GoRails in order to manually "mark as watched" an episode? When I randomly select an episode to watch, I would like to list only those that I have...
Chris Oliver replied
Solved

Better Errors ignore 404 errors

3
Rails
I'm using better_errors gem to track errors better. Any idea how to make it ignore 404 or ActiveRecord::RecordNotFound exceptions? I want to test to make sure my 404 page is working correctly and I...
Chris Oliver replied
Solved

How to link the liked posts by each user?

3
General
I just finished with the [Liking Posts](https://gorails.com/episodes/liking-posts?autoplay=1) screencast. All good. I managed to create a User Profile. And now I'm trying to display the liked post...
Chris Oliver replied
Solved

Setting up “Next post” and “Previous post”

2
General
In my blog application I want to have a **"Previous post"** link and a **"Next post"** link in the bottom of my show view. But I'm having a hard time getting it to work. What am I missing? **This...
Chris Oliver replied
Solved

Stripe Subscription with Initial setup fee

3
Gems / Libraries
Hey Everyone, I'm building a relatively simple subscription based app using Stripe, Devise, Pundit and a few other resources. My only real hangup at the moment is that the subscription requires an...
Jake replied
Solved

Calling function from handling click event issue

8
General
Hi Everyone Using the UJS approach Chis showed in the NavBar notifications screencasts, I'm trying to implement something similar, and having very strange issue that I can't even imagine what's th...
Michael Derzhavets replied
Solved

How to I use Refile as Upload in a polymorphic way? I have managed to use it that way but i am struggling on destroy image after uploading

1
General
Here is the Schema for Uploads ```ruby create_table "uploads", force: :cascade do |t| t.string "file" t.string "file_id" t.string "file_filename" t.integer "file_size" ...
Chris Oliver replied
Solved

rails + DB dependent destroy vs cascade delete

3
General
Hi, I wanna make sure that child objects also gets deleted when deleting parent. I'd like to use both `dependent: :destroy` (rails side) and `on_delete: :cascaade` (db side). Is this a good prac...
Chris Oliver replied
Solved

How can I solve it?

10
General
Hello guys I have a problem with this! I'm making my website where user can give feedback to my projects, contact me and make comment to a blog_post. The problem is when i make the render 'blog_p...
Federico Calarco replied
Solved

How do I include a placeholder for empty notifications

2
General
Your In-App Notification code worked perfectly. However I'm stuck on what code to use to display a placeholder message if there aren't any notifications. You mentioned this briefly in the episode ...
Stan Smith replied
Solved

Limit CSV export by Day, Week and Month

1
General
Hi there, is there an easy way to limit the results inside a CSV export to a specific time-frame, like day, week and month? Thanks!
Chris Oliver replied
Solved

How do i update an attribute for belongs_to association when scraping a site?

5
General
So pretty much a `anime` belongs_to :season and a `season` has_many :animes. I'm scraping a site and i'm collecting the season like "Spring 2015". I want to be able to assign "Spring 2015" to a ani...
Chris Oliver replied
Solved

How to by pass a string that has '???????' when scraping for dates and turning the date into an integer?

6
General
I'm scraping a anime information website. Right now, I'm trying to get the date going, but on some of the anime the date comes out as ???,??,????. I'm tying to figure out how to skip that or put so...
Wes replied
Solved

Rails console hacks :)

2
Rails
Hi there, I need some help how to handle the rails console commands. I'm really stuck here.. I've recently added a new column (teams) to my Sales and Orders model. Both models containing the user...
Chris Oliver replied
Solved

data consistency for invitation registration

9
General
Hey! At the moment I have a user and a product table and products are created by users. So the user can create his own product he is working on. User `has_many :products` and `product belongs_to :...
Sean M replied
Solved

Can I 'alias' a Rails active model to another class

9
General
First off I am sure I am not asking this question correctly as this is an advanced Rails topic over my head right now. Here is what I have for routes: concern :assetable do resources :ass...
Chris Oliver replied
Solved

Learning Ruby on Rails? Join our newsletter.

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