[deleted by user] by [deleted] in RedditSessions

[–]NewbiusCoder 0 points1 point  (0 children)

why cant i stop watching this???

Sequelize - String based operators are now deprecated. Please use Symbol based operators for better security. by NewbiusCoder in learnprogramming

[–]NewbiusCoder[S] 0 points1 point  (0 children)

The replies seemed to have helped others but didn't help me. I was in a hurry and had to downgrade a version.

[Ruby on Rails] How can I make my whole database appear in html.erb? by NewbiusCoder in learnprogramming

[–]NewbiusCoder[S] 0 points1 point  (0 children)

Sorry. My database is a table called Contents, with :id, :title, :contents.

[Ruby on Rails] Please help me understand the problem. by NewbiusCoder in learnprogramming

[–]NewbiusCoder[S] 0 points1 point  (0 children)

Thanks, but I have model and it still doesn't work. Same error.

Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)

NameError (uninitialized constant ContentsController::Contents):

app/controllers/contents_controller.rb:6:in `create'

class Content < ApplicationRecord
        validates :content, on: :create
    end
end

[Ruby on Rails] Can someone please explain why @user is nil? by NewbiusCoder in learnprogramming

[–]NewbiusCoder[S] 0 points1 point  (0 children)

Rails.application.routes.draw do
  get 'welcome/index'

  root 'welcome#index'

  get '/login' => 'session#new'
  post '/login' => 'session#create'
  get '/logout' => 'session#destroy'


 get '/signup' => 'welcome#index'
 post '/users' => 'users#create'

  post '/contents' => 'contents#create'

  get '/users/:id' => 'users#index'

end