Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Solved-ish] 500 error when creating new recurrence #34

Closed
cashweaver-zz opened this issue Feb 28, 2014 · 1 comment
Closed

[Solved-ish] 500 error when creating new recurrence #34

cashweaver-zz opened this issue Feb 28, 2014 · 1 comment
Assignees
Labels
Milestone

Comments

@cashweaver-zz
Copy link

After installing the plugin about an hour ago I encountered a 500 error when trying to add a new recurrence. My error log (log/production.log) showed there was a syntax error: unexpected ':' pointed at the word 'partial' in the line I've included below. I changed the symbol syntax from

partial:

to

:partial =>

for the following line (2: {path to redmine}/plugins/recurring_tasks/app/views/recurring_tasks/new.html.erb).

<%= render partial: "form", locals: { next_step: 'create', rt: @recurring_task } %>

After my changes, the line looks like this:

<%= render :partial => "form", :locals => { :next_step => 'create', :rt => @recurring_task } %>

I also needed to update line 3 in edit.html.erb to read

<%= render :partial => "form", :locals => { :next_step => 'update', :rt => @recurring_task } %>

And restart apache (ubuntu12.04)

services apache2 restart

And the error disappeared.

I have minimal experience with Rails. The only thing I could think of was my local version of Rails didn't support the colon-after-symbol syntax. I wanted to publish this in case anyone else had my issue!

@nutso nutso self-assigned this Mar 1, 2014
@nutso nutso added the bug label Mar 1, 2014
nutso added a commit that referenced this issue Mar 1, 2014
@nutso nutso closed this as completed Mar 1, 2014
@nutso
Copy link
Owner

nutso commented Mar 1, 2014

Thanks for the info, integrated into master. Hopefully this is the last place where I used that syntax.

@nutso nutso added this to the v1.3.0 milestone Jun 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants