"Missing partial users/avatar" with Redmine 2.0.3
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Redmine Local Avatars Plugin |
New
|
High
|
Unassigned |
Bug Description
Hello,
I am running Redmine 2.0.3 with the latest version of redmine_
------
Environment:
Redmine version 2.0.3.stable.10070
Ruby version 1.9.3 (x86_64-linux)
Rails version 3.2.6
Environment production
Database adapter PostgreSQL
Redmine plugins:
redmine_backlogs v0.9.9
redmine_
redmine_
------
Upon installation of revision 28 I faced the bug described in https:/
To get it working I had to rename all $partialname.
------
root@dev:~# diff -rq redminelocalava
Only in redminelocalava
Only in redminelocalava
Only in redminelocalava
Only in redminelocalava
Only in redminelocalava
Files redminelocalava
root@dev:~# diff -pruN redminelocalava
--- redminelocalava
+++ redminelocalava
@@ -31,7 +31,7 @@ module LocalAvatarsPlugin
def avatar
@user = User.current
-# render :partial => 'users/avatar', :layout => true
+ render :partial => 'users/avatar', :layout => true
end
def save_avatar
------
After that I was able to click My Account > Change Local Avatar and submit new avatar.
However, if I try to go to Administration > Users and pick any user for editing, I get the error in my redmine log:
------
Started GET "/users/11/edit" for 117.239.142.194 at 2012-09-23 17:43:55 +0700
Processing by UsersController
Parameters: {"id"=>"11"}
DEPRECATION WARNING: :confirm option is deprecated and will be removed from Rails 4.0. Use ':data => { :confirm =>
'Text' }' instead. (called from _app_views_
pps/redmine-
Rendered users/_
Rendered users/_
Rendered users/_
Rendered users/_
Rendered users/_
Rendered common/
Rendered users/edit.html.erb within layouts/admin (73.1ms)
Completed 500 Internal Server Error in 77ms
ActionView:
* "/var/www/
* "/var/www/
* "/var/www/
* "/var/www/
):
21: </script>
22:
23: <% tabs.each do |tab| -%>
24: <%= content_tag('div', render(:partial => tab[:partial], :locals => {:tab => tab} ),
25: :id => "tab-content-
26: :style => (tab[:name] != selected_tab ? 'display:none' : nil),
27: :class => 'tab-content') %>
app/views/
app/views/
app/views/
app/helpers/
app/views/
------
It is not clear, why I am facing that issue, as the partial file is present:
------
root@dev:~# ls -l app/views/users/
total 4
-rw-r--r-- 1 root root 429 Sep 23 17:01 avatar.html.erb
------
Could you please help me to work around this issue?
Changed in redminelocalavatars: | |
importance: | Undecided → High |
Update with step-by-step instructions how to get Local Avatars working on Redmine 2.x: local_avatars: directory/ plugins
1. Check out the latest revision of redmine_
~# cd /your/redmine/
~# bzr branch lp:redminelocalavatars
2. Create missing view folder: tars/app/ views/my
~# mkdir redminelocalava
3. Rename .erb.html files to .html.erb: tars/app/ views/users/ {_avatar. erb.html, avatar. html.erb} tars/app/ views/hooks/ redmine_ local_avatars/ _view_my_ account_ contextual{ .erb.html, .html.erb}
~# mv redminelocalava
~# mv redminelocalava
4. Put copy of avatars.html.erb to app/views/my: tars/app/ views/{ users,my} /avatar. html.erb
~# cp redminelocalava
5. Comment out render: partial line in lib/my_ controller_ patch.rb: tars/lib/ my_controller_ patch.rb
~# sed '/render :partial/s~^~#~' -i redminelocalava
6. Restart your redmine service. For me it is thin:
~# /etc/init.d/thin restart