Displaying 4 results from an estimated 4 matches for "edit_post_path".
2012 Oct 23
2
SyntaxError in Posts#index ?
For some reason getting this... Any ideas?
Extracted source (around line *#13*):
10: <%= link_to "Show", post %> |
11: <span class="admin">
12: <%= link_to "Edit", edit_post_path(post) %> |
13: <%= link_to "Delete", post, method: :delete, data: {confirm: "Are you sure?"} %> |
14: </span>
15: <div>
16: </div>
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk"...
2009 Jul 26
2
How knows my paths in link_to? If I do not defined.
...I´l following the guide of Ruby, but I need to know how the Ruby knows
my path to other pages if I did not define anything, like this:
app/views/posts/index.html.erb:
<td><%= link_to ''Show'', post %></td>
<td><%= link_to ''Edit'', edit_post_path(post) %></td>
Other path(home/index.html.erb):
<%= link_to "My first blog in Ruby on Rails", posts_path %>
I need help to know how Ruby knows the path of "post",
"edit_post_path(post)" and "posts_path"?
Thank you all!
ps:
The link that I´m...
2012 Oct 31
5
css background not showing
...ost">
<strong><%= post.title %></strong>
<p><%= post.content %></p>
<div class="meta">
<%= link_to time_ago_in_words(post.created_at) + " ago", post %>
<span class="admin">
| <%= link_to "Edit", edit_post_path(post) %> |
<%= link_to "Delete", post, :confirm => "Are you sure you want to delete
this post?", :method => :delete %> |
</span>
<div>
</div>
<% end %>
Any ideas?
--
You received this message because you are subscribed to the...
2011 May 19
0
Unable to find the image path via file system using the paperclip plugin through the get method
...ts %>
<%= image_tag post.photo.url %>
<table>
<tr><td><%=h post.message %></td></tr>
<tr><td><%= link_to ''Show'', post %></td>
<td><%= link_to ''Edit'', edit_post_path(post) %></td>
<td><%= link_to ''Destroy'', post, :confirm => ''Are you sure?'',
:method => :delete %></td></tr>
</table>
<br/> <hr/>
<% end %>
<br />
<%= li...