Created
August 29, 2012 05:37
-
-
Save carloncarpio/3507183 to your computer and use it in GitHub Desktop.
i can't make my deleted data fadeout
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def destroy | |
@vipbbsrsbb = Vipbbsrsbb.find(params[:id]) | |
@vipbbsrsbb.destroy | |
respond_to do |format| | |
format.html { redirect_to vipbbsrsbbs_url } | |
#format.json { head :no_content } | |
format.js {} | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('#<%= dom_id(@vipbbsrsbb) %>').fadeOut(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1>Listing vipbbsrsbbs</h1> | |
<table> | |
<tr> | |
<th>Ticket num</th> | |
<th>Company name</th> | |
<th>Company contact</th> | |
<th>Company email</th> | |
<th>Approved</th> | |
<th></th> | |
<th></th> | |
<th></th> | |
</tr> | |
<% @vipbbsrsbbs.each do |vipbbsrsbb| %> | |
<tr id='<%= dom_id vipbbsrsbb %>'> | |
<td><%= vipbbsrsbb.ticket_num %></td> | |
<td><%= vipbbsrsbb.company_name %></td> | |
<td><%= vipbbsrsbb.company_contact %></td> | |
<td><%= vipbbsrsbb.company_email %></td> | |
<td><%= vipbbsrsbb.status %></td> | |
<td><%= link_to 'Show', vipbbsrsbb %></td> | |
<td><%= link_to 'Edit', edit_vipbbsrsbb_path(vipbbsrsbb) %></td> | |
<td><%= link_to 'Destroy', vipbbsrsbb, confirm: 'Are you sure?', method: :delete, remote: true %></td> | |
</tr> | |
<% end %> | |
</table> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment