Sorry, should have been clearer: pull the latest from both community_engine edge and community_engine_groups master
Thanks, Bruno On Fri, Jun 4, 2010 at 11:28 AM, Bruno Bornsztein < [email protected]> wrote: > Please pull the latest from Github, I just pushed a fix. > > Thanks, > Bruno > > > On Fri, Jun 4, 2010 at 4:10 AM, jscott <[email protected]> wrote: > >> Thanks Bruno! >> >> The template fix was easy - @group_photo became simply @photo with >> this result (suggested by you, below) and it worked just fine: >> >> - semantic_form_for @photo, :html => {:class => >> "MainForm", :multipart => true} do |form| >> >> However, with that fixed, both of the group photo options reverted to >> the error with the page_title method! >> >> Clicking on "Add New Photo" as well as clicking on an existing photo, >> returns this result (same as before): >> >> [[LOG EXCERPT]] >> ActionView::TemplateError (interpolation argument name missing in >> "{{name}}'s photos") on line #7 of vendor/plugins/community_engine/app/ >> views/layouts/application.html.haml: >> 7: %title= page_title >> 8: -if @meta >> 9: [email protected] do |key| >> >> vendor/plugins/community_engine/app/helpers/base_helper.rb:179:in >> `page_title' >> vendor/plugins/community_engine/app/views/layouts/ >> application.html.haml:7:in >> >> `_run_haml_vendor47plugins47community_engine47app47views47layouts47application46html46haml' >> >> [[END LOG EXCERPT]] >> >> the page_title method is not overridden in base_helper, BUT, there is >> no reference to anything dealing with groups. You suggested the >> following: >> >> group_photos.l :name => @group.name >> (this does not exist right now) >> >> So - clearly I should edit base_helper somehow to add this @group.name >> piece to the page_title method? >> >> THANKS GUYS! this is really nagging me! >> >> >> PS - here's the end of the page_title method from base_helper, as it's >> written now: >> >> 176: if @page_title >> 177: title = @page_title + ' » ' + app_base + tagline >> 178: elsif title == app_base >> 179: title = :showing.l + ' ' + >> @controller.controller_name.l >> + ' » ' + app_base + tagline >> 180: end >> 181: >> 182: title >> 183: end >> >> On Jun 3, 2:34 pm, Bruno Bornsztein <[email protected]> >> wrote: >> > > ActionView::TemplateError (interpolation argument name missing in >> > >> > "{{name}}'s photos") on line #7 of vendor/plugins/community_engine/app/ >> > >> > > views/layouts/application.html.haml: >> > >> > Looks like somewhere (#line 7) you're calling :group_photos.l without >> > passing it the :name argument. >> > >> > Have you overridden the page_title method in base_helper? When you call >> > :group_photos.l, it expects an argument, like: >> > >> > :group_photos.l :name => @group.name >> > >> > Error 2: (EASIER) "undefined method `nil_class_path' for >> > >> > > #<ActionView::Base:0xccc6378>) on line #2 of vendor/plugins/ >> > > community_engine_groups/app/views/group_photos/new.html.haml:" >> > >> > > ActionView::TemplateError (undefined method `nil_class_path' for >> > > #<ActionView::Base:0xccc6378>) on line #2 of vendor/plugins/ >> > > community_engine_groups/app/views/group_photos/new.html.haml: >> > > 1: -box do >> > > 2: - semantic_form_for @group_photo, :html => {:class => >> > > "MainForm", :multipart => true} do |form| >> > >> > I think that should be: >> > >> > - semantic_form_for @photo, :html => {:class => >> > "MainForm", :multipart => true} do |form| >> > >> > Good luck, >> > Bruno >> > >> > >> > >> > > 3: >> > > 4: -form.inputs do >> > > 5: = form.input :uploaded_data, :as => :file, :label >> > > => :choose_a_photo_to_upload.l, :hint => >> > > "#{AppConfig.photo['attachment_fu_options']['max_size']} >> > > #{:megabyte_upload_limit.l}" >> > >> > > [[END LOG]] >> > >> > > Okay! Two slightly different problems - anyone have a clue what's >> > > going on with these? This is driving me crazy! >> > >> > > Best - JScott >> > >> > > -- >> > > 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]<communityengine%[email protected]> >> <communityengine%2Bunsubscribe@ googlegroups.com> >> > > . >> > > For more options, visit this group at >> > >http://groups.google.com/group/communityengine?hl=en. >> >> -- >> 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]<communityengine%[email protected]> >> . >> For more options, visit this group at >> http://groups.google.com/group/communityengine?hl=en. >> >> > -- 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.
