How do I display errors messages from devise in the same page?
1
Rails
Hello, Chris!
I have a rails appp, and I'm using Devise (without simple_form).
My registration form is in my homepage, root_path. I followed the tutorial from Devise and I'm able to register users...
sakio replied
Model not updated correctly on drag (Apartment + Vue + Rails 6)
0
Rails
**Stack used**: Rails 6
**Gems used**: Apartment, Devise, Vue, vuedraggable, acts_as_list
Hi guys! I'm trying to create a "Trello" type app (following the Vue.js Trello Clone in Rails screencast)...
Alan Dew posted
video about sortable lists
21
Rails
Hi,
I'm not sure if this is the right place to post this issue, but I'm looking for a way in my Rails app to reorder items by drag and dropping.
I tried to implement the solution by Ryan Bates in...
Chris Oliver replied
Best way to grant a user specific permissions
5
Rails
Trying to determine which way I should handle this.
Normal User adds a post to our system, he then has the ability to update and delete this post. In the future he may assign other users the abili...
Brent C replied
problem with like link in nested resource
3
Rails
Hi Chris im doing the episode 'liking posts' i have difficult to do with deep nested resource,
my actual nested resources looks:
A. Routes:
```ruby
resources :users do
resources :catalog...
Chris Oliver replied
Performance increase over group_by
6
Rails
How can I write the below operation, being handled by _group_by_ Ruby method, in terms of DB specific query?
```ruby
def list_users
@search_by_options = [:age, :location, :department, :desig...
arup rakshit replied
How should I model this situation?
2
Rails
I need to store different metrics about various companies. These will be present for every company:
* revenue
* ebitda
* cash
* receivables
* employees
* debt
each one has attributes such as...
Chris Oliver replied
Associating Radio Buttons With Specific Field Subsets In Rails
1
Rails
**Situation:** A user enters the name of a venue they want to add. I query an external API and get back a list of possible venues they actually meant, which they'll then confirm. The venue model wi...
Chris Oliver replied
Show each users each post.
1
Rails
I'm trying to create a page where all my users are listed, and every movie they've added to their account.
My UserController index def
def index
@users = User.all
if logged_in?
...
Chris Oliver replied
Trouble With Form Objects
6
Rails
I decided to experiment with a form object.
```ruby
class Invitation
include ActiveModel::Model
attr_accessor(
:first_name,
:last_name,
:email,
:firm_id,
:role
)
vali...
Chris Zempel replied
Pundit Scope and has_many through
1
Rails
Hi!
I can use a little help to get on the right track.
I have 3 models
```ruby
class User < ActiveRecord::Base
has_many :associations
has_many :items, through: :associations
end
class It...
Chris Oliver replied
Using Pundit to build in a cool gmail-feature
5
Rails
I'm building an app with data set up similar to this:
```ruby
class Company < ActiveRecord::Base
has_many :products
has_many :options, through: :products
end
class Product < ActiveRecor...
Chris Zempel replied
Bundle issues
2
Rails
Hi,
I'm starting the forums tutorials, and I keep get this bundle error. I've tried bundle update and get the same thing:
Bundler could not find compatible versions for gem "sprockets":
In Gemf...
Chris Oliver replied
Solved
Likes routing error
8
Rails
I am trying to use the Likes tutorial to create Favs for locations, which are nested under stores.
Here is the relevant route section
```
resources :stores do
resources :locations do
r...
Chris Oliver replied
deploy Rails
2
Rails
I following the deploy rails instructions on GoRails.
When I tried to install Ruby 2.1.2 with rbenv, I got this error message:
"no acceptable c compiler found in $PATH"
I solved it by runnin...
Anthony Candaele replied
Deploy Rails guide confusion
2
Rails
Hi,
I'm deploying my Rails app, using this website's Deploy Rails guide.
Something is not really clear, at the end of the guide, under the section 'Adding The Nginx Host' it says:
"Open up /...
Anthony Candaele replied
Structure Guidance - Multi Tenancy Authentication / Authorization
19
Rails
I while back I was playing around building an app where you had multiple tenants (Company Model) and a single login (User Model). I then created roles (Role Model) to link the users to the tenants....
Chris Oliver replied
how do i create two users at the the same time with two different session? P.S I am trying to create a game where two players are created at once being of same class(Player)
1
Rails
I am trying to create a game where two players are created at once being of same class(Player).
Leroy Diaz replied
Ecommerce multi-step checkout with guest accounts
11
Rails
Hello, I've been thinking about the best approach for implementing a checkout scenario in a custom ecommerce site I've been developing and wanted to see if anyone here had advice to share.
We're n...
sabrinacollinsss581 replied
Calendar with Recurring Events Error Message - undefined method `has_key?' for "null":String
1
Rails
Hi I'm trying to follow Chris's Recurring events tutorial and I'm coming across this error message...NoMethodError in EventsController#indexundefined method `has_key?' for "null":StringExtracted so...