Comments (3)
I remember coming into an error like this, but it was because I defined 'new' in my posts controller under a private method, so then the view could not access my @post variable. I'm not sure if this is the same situation but it's worth a look.
from nku.
I doubt that's the case, the error is occurring in the show action. @w1ll1am23 I would check the show action in your controller, you might be missing something in it that's causing that to be undefined.
from nku.
I had my private method post_params in the middle of my controller and had the show and index below that. The post controller couldn't access the variable. All is good now. Thanks for the help guys.
from nku.
Related Issues (20)
- ActiveRecord question HOT 2
- How can an administrator sign up? HOT 1
- Logout not being properly referenced HOT 1
- CSS / LESS not classes not being applied
- Adding upload action? HOT 3
- Creating an administrator HOT 3
- Question about to assignments ago, querying for assignments
- SASS Error HOT 5
- Rollback some commits HOT 5
- Question about STIs or polymorphic associations HOT 10
- Site won't collapse on mobile HOT 2
- I'm thinking about using devise HOT 4
- Who wants an invite to prelang? HOT 16
- Ruby Brigade tomorrow is anyone going?
- How do to safely use github? HOT 8
- Blank Pages HOT 5
- Can't Use Partial Dates HOT 4
- has_many :through => HOT 2
- validation errors HOT 4
- ActiveRecord::PendingMigrationError HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nku.