Search Results for "active-pages-user-s"

Lessons












Forum Threads

Authenticating Blog Admin Pages Discussion

19
General
Hi, Is it necessary to add @blog_post behind the edit_blog_post_path in the last part of the video or can that be left out as well? <%= link_to "Edit", edit_blog_post_path if user_signed_in? %>

Remember Me in Devise fails to Login User

2
Gems / Libraries
If I don't use `remember_me` option, it works perfectly fine. The app flows as expected. However, if I check `remember_me`, it will login in as expected, redirect me to a protected page, which wi...
Szedmák István replied

Deploy Ubuntu 22.04 Jammy Jellyfish Discussion

46
General
Thanks a lot for this step by step guide! Anyway, I'm facing a problem with Passenger. After deploying the app, I see this in the nginx logs: Error opening '/home/deploy/my_app/current/Passengerfi...
Hamdan M replied

JSON:API Format and Active Model Serializers Discussion

18
General
Very nice video as always, but there's an editing problem on your video. Check it between 15:00 and 17:00. You actually repeat the same thing twice, but the wordings you use is different, I guess y...
regedarek replied

Group Chat with ActionCable: Part 4 Discussion

69
General
As for message relay jobs matter for this particular subject of this ActionCable example, do you recommend putting down for its current_user's id or name in these kind of scenarios when it comes to...

Setup Windows 10 Discussion

236
General
Hi,I got all the way through this so thanks for the walk through! I run "rails server -b 0.0.0.0" and the server boots fine but when I go to localhost:3000 in the browser, the browser icon spins bu...

Setup Ubuntu 16.04 Xenial Xerus Discussion

110
General
Don't use "ssh-keygen -t rsa", use "-t dsa", much safer and not owned by NSA.... ;-)
Someone replied

Liking Posts Discussion

96
General
Learned a lot of new things through this post, thank you. Never knew how to properly write a route to a module or the proper architecture for that set up. Very useful stuff. Would have liked to s...
Someone replied

Deploy Ubuntu 14.04 Trusty Tahr Discussion

371
General
The following commands should be slightly modified:cap install STAGES=productioncap production deployI believe it should be the following:bundle exec cap install STAGES=productionbundle exec cap pr...
paul lahana replied

Ruby issue when doing cap deploy production

68
General
Hi, I'm following the Deploy Rails guide. However, when I run cap production deploy I'm getting this error message: $cap production deploy DEBUG[be6b6bd6] Running /usr/bin/env [ -d ...
shakycode replied

Form Objects Design Pattern Discussion

15
General
Nice episode, I've been using forms like this all over the place, especially when an AR object can be saved via many different use cases with many different "valid" states. One quibble, seem more ...
Jasper Wilde replied

Non Restful actions in the controller

6
Rails
I originally asked this question about building a reporting feature in my app https://gorails.com/forum/advice-on-building-a-reports-feature. I'd like to simplify this question even further. I wan...
shakycode replied

Chartkick and impressionist gem render not working

32
Rails
**EDIT 1** Here is a screenshot of the [current graph](https://gyazo.com/6dfa1edbfe15a5f8f80f424c681ff690) **Original Post** I'm using both chartkick and the impressionist gem and I seem to be r...
Ben John Bagley replied

Iam desperately trying to deploy my App with Capistrano but it isnt working

2
Rails
Hey Folks, I have always received great help here, so I hope that it will work out this time so shortly before the end. I would like to deploy my app on my server and use capistrano. However, I c...
Sebastian replied
Solved

Rails 6 + ActiveAdmin + ActionText

1
Rails
I need to create an app with video + blog content, users, permission etc that includes a CMS to change and rearrange content easily. Anyone integrated ActionText into ActiveAdmin - what would b...
Chris Oliver replied

Deploy Ubuntu 16.04 Xenial Xerus Discussion

91
General
This is not working on Xenial Xerus because there is no packages for Ubuntu 16.04 in Phusion Passenger repositores yet.
Alex Hendershott replied

when use carrierwave to upload mutiple images in one product , the active_admin edit one product page error.

0
Gems / Libraries
I want to add or upload multiple images in one product, but after I implement this , the active_admin edit product page error. in products_controller.rb, permit the images , which type is json `...
Larry Qu posted

Using will_paginate and .limit(x) together.

6
Rails
Hi It appears that will_paginate and .limit(x) will not work together. So this didn't work: (I am trying to get 150 most recent records and paginate them) @articles = Article.where.not(site_i...
Simon P replied
Solved

How do I allow viewing of a paranoia soft-deleted show page?

6
General
I added paranoia gem to my cms application from your soft delete tutorial. I would like users to still be able to access the show page of soft deleted items -- this is where I would add a restore ...
Chris Oliver replied

Count the number of pages in a pdf

0
Rails
Hello! I am trying to count the number of pages in a PDF for a print service using PDF-reader (https://github.com/yob/pdf-reader). Here's what I have so far but, I only get a hash of {"identified...
Nick Seferos posted