After attempting to create a record in the console. I get the output
below
(0.5ms) begin transaction
Article Exists (0.0ms) SELECT 1 AS one FROM "articles" WHERE
("articles"."id" != 12) AND "articles"."slug" = ? LIMIT 1 [["slug",
"wow-the-movie-was-great"]]
(0.0ms) rollback transaction
false
I created 5 scoping methods inside of category.rb for targeting specific
categories. I don't know why the records are not saving. I wrote the
form properly and routes correctly.
resources :articles do
member do
get 'like', to: 'articles#like'
get 'dislike', to: 'articles#unlike'
end
end
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/rubyonrails-talk/ebe8f80aa4c9effef97dded8ea8abc96%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.