asocial | Asocial is project to build | Social Channel Utils library
kandi X-RAY | asocial Summary
kandi X-RAY | asocial Summary
Asocial is a project to build a decentralized social network like twitter without database.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of asocial
asocial Key Features
asocial Examples and Code Snippets
Community Discussions
Trending Discussions on asocial
QUESTION
"I am learning Rails, building asocial app f "I think my problem with the routes... "...still figuring them out. " 3 days trying all sorts of things. "This is where I am now, and something is not working as expected. "Any help/pointers would be appreciated! :)
The ProblemAfter sign in with devise i route to the main page called '/opinions" When I access the form to create a new forum and I hit submit, " the form post to '/opinions' correctly " but I am rendering the same form in my user page '/users/1" When i hit submit there i git this error ."
...ANSWER
Answered 2020-Oct-21 at 23:13Well, the error is dispatched because you should not make a POST to /resource/:id (/users/2). In case you expect to update info use PUT. I think that you are passing @opinions to form_with helper, which I guess is an array of Opinion of a user. If so, you should create a variable @opinion = Opinion.new to execute correctly in the user views. But please edit the post with the UserController.rb file to help you better.
A correct way should be like this:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install asocial
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page