Instead of renaming it, put a copy of the file, with its original name
in the views folder of you application instead of the plugin folder.
This will allow you to make whatever changes you want w/o mucking up
the routes or other config settings.

Hope this helps

Levi



On 11/27/08, homiez1 <[EMAIL PROTECTED]> wrote:
>
> Hello. I'm new CE user from Japan.
>
> I wanna make two pattern "views/posts/_post.html.haml",
> like "_post.html.haml" & "_post2.html.haml".
>
> So, I copied _post.html.haml, and then named _post2.html.haml to it.
> To check _post2.html.haml, I rewrite like below on "views/categories/
> _show.html.haml
>
> = render :partial => 'posts/post', :collection => @posts
>
> ||     ||    ||    ||    ||    ||    ||     ||    ||    ||    ||    ||
> V    V   V   V   V    V   V    V   V   V   V    V
>
> = render :partial => 'posts/post2', :collection => @posts
>
> Then, I checked page.
> But I got below error.
> I hope you'll give me some advice.
> ---------------------------------------------------------
> NameError in Categories#show
>
> Showing vendor/plugins/community_engine/app/views/posts/
> _post2.html.haml where line #2 raised:
>
> undefined local variable or method `post' for #<ActionView::Base:
> 0x33afacc>
>
> Extracted source (around line #2):
>
> 1: .hentry
> 2:   %h4.entry-title{:id=>"post_#{ post.id}"}
> 3:     = link_to post.title, user_post_path(post.user, post), :rel =>
> 'bookmark'
> 4:
> 5:   .vcard.author
> ---------------------------------------------------------
>
>
>
> >
>

-- 
Sent from Gmail for mobile | mobile.google.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CommunityEngine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/communityengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to