calentry edit

This commit is contained in:
Andreas Stephanides
2014-10-19 16:16:55 +02:00
parent e7bc4276db
commit e7ffb850d5
2 changed files with 8 additions and 6 deletions

View File

@@ -35,10 +35,12 @@ class CalentriesController < ApplicationController
# end # end
# GET /calentries/1/edit # GET /calentries/1/edit
#def edit def edit
# @calentry = Calentry.find(params[:id]) @calentry = Calentry.find(params[:id])
respond_to do |format|
# end format.html
end
end
# POST /calentries # POST /calentries
# POST /calentries.json # POST /calentries.json

View File

@@ -1,4 +1,4 @@
<div class="contentbox"> <div class="contentbox" id="calentry_<%= calentry.id%>">
<% image_tag("/iconnavy/time.png") %> <% image_tag("/iconnavy/time.png") %>
<%= fa_icon("calendar 2x") %> <%= fa_icon("calendar 2x") %>
@@ -9,5 +9,5 @@ format =:default
end%> end%>
<%= calentry.text %> <%= calentry.text %>
<%= link_to "edit", edit_calentry_path(calentry) if can? :edit, calentry %>
</div> </div>