calentry edit
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user