NameError in Streams#multi

30 views
Skip to first unread message

Paul S.

unread,
Aug 31, 2012, 10:06:36 PM8/31/12
to diaspo...@googlegroups.com
Just encountered this error. Have a fresh install of diaspora on a local machine. After registering a first user get this:

NameError in Streams#multi

Showing /Users/../../../../diaspora/app/views/shared/_publisher.html.haml where line #13 raised:

uninitialized constant Post

Extracted source (around line #13):

10: 
11: #publisher{:class => ((aspect == :profile || publisher_open) ? "mention_popup" : "closed")}
12:   .content_creation
13:     = form_for(StatusMessage.new) do |status|
14:       = status.error_messages
15:       %div
16:         %params

Trace of template inclusion: app/views/aspects/_aspect_stream.haml, app/views/layouts/main_stream.html.haml

Rails.root: /Users/p.../../../Project/..p/diaspora

Application Trace | Framework Trace | Full Trace
app/models/status_message.rb:5:in `<top (required)>'
app/views/shared/_publisher.html.haml:13:in `_app_views_shared__publisher_html_haml___1758233609498437079_70290203629080'
app/views/aspects/_aspect_stream.haml:15:in `_app_views_aspects__aspect_stream_haml__4470938800980650534_70290217567500'
app/views/layouts/main_stream.html.haml:55:in `_app_views_layouts_main_stream_html_haml___3712824048606666389_70290245163740'
app/controllers/streams_controller.rb:72:in `block (2 levels) in stream_responder'
app/controllers/streams_controller.rb:71:in `stream_responder'
app/controllers/streams_controller.rb:44:in `multi'
config/initializers/silence_assets.rb:9:in `call_with_quiet_assets'
lib/rack/chrome_frame.rb:39:in `call'

Billy O'Connor

unread,
Aug 31, 2012, 11:20:22 PM8/31/12
to diaspo...@googlegroups.com
"Paul S." <psl...@bluebox.net> writes:

> Just encountered this error. Have a fresh install of diaspora on a
> local machine. After registering a first user get this:
>
>
> NameError in Streams#multi
>
> Showing /Users/../../../../diaspora/app/views/shared/_publisher.html.haml where
> line #13 raised:
>
> uninitialized constant Post
>
> Extracted source (around line #13):
>
> 10:
> 11: #publisher{:class => ((aspect == :profile || publisher_open) ? "mention_popup" : "closed")}
> 12: .content_creation
> 13: = form_for(StatusMessage.new) do |status|
> 14: = status.error_messages
> 15: %div
> 16: %params

I was unable to reproduce this just now with a fresh install and an empty database.

Sean Tilley

unread,
Aug 31, 2012, 11:26:50 PM8/31/12
to diaspo...@googlegroups.com
Out of curiosity, what's your pod's configuration? (OS, database type, etc). By having these details, it may make it easier to pinpoint exactly what's causing your issue. :)

-Sean

Paul S.

unread,
Sep 1, 2012, 12:56:07 AM9/1/12
to diaspo...@googlegroups.com
The error is gone when I use DeadSuperhero's branch at https://github.com/DeadSuperHero/diaspora/

Paul S.

unread,
Sep 1, 2012, 12:59:30 AM9/1/12
to diaspo...@googlegroups.com
I am trying to develop on Mac OS X 10.7.4, ruby 1.9.3, rails 3.2.8, postgresql 9.1. I am relatively new to rails (and to programming in general), so trying to make sense of the process. 

Sean Tilley

unread,
Sep 1, 2012, 1:03:10 AM9/1/12
to diaspo...@googlegroups.com
While I'm flattered that you're using my branch, you might want to pull from the official Github repo in the future. Mine occasionally falls behind with updates, since mine is not exactly a shining example of rapid development. I just use it for making Pull Requests.

On the other hand, mine was updated a few hours ago, to be in line with upstream. Curiouser and curiouser!

If the error comes up for you again in the future, please let us know. I'd be interested in figuring out what's causing this problem exactly.

-Sean (DeadSuperHero)
Reply all
Reply to author
Forward
0 new messages