calentry edit
This commit is contained in:
@@ -35,10 +35,12 @@ class CalentriesController < ApplicationController
|
||||
# end
|
||||
|
||||
# GET /calentries/1/edit
|
||||
#def edit
|
||||
# @calentry = Calentry.find(params[:id])
|
||||
|
||||
# end
|
||||
def edit
|
||||
@calentry = Calentry.find(params[:id])
|
||||
respond_to do |format|
|
||||
format.html
|
||||
end
|
||||
end
|
||||
|
||||
# POST /calentries
|
||||
# POST /calentries.json
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<div class="contentbox">
|
||||
<div class="contentbox" id="calentry_<%= calentry.id%>">
|
||||
<% image_tag("/iconnavy/time.png") %>
|
||||
<%= fa_icon("calendar 2x") %>
|
||||
|
||||
@@ -9,5 +9,5 @@ format =:default
|
||||
end%>
|
||||
<%= calentry.text %>
|
||||
|
||||
|
||||
<%= link_to "edit", edit_calentry_path(calentry) if can? :edit, calentry %>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user