Closed c-lliope closed 9 years ago
@graysonwright
I fixed the destroy
code I had before; but the routing is still. Everything seems normal when I am not logged in as an admin. When I am it seems like the id's cant be found.
Try to install the binding_of_caller gem, and then visit that page again – whenever you hit an error your app like that, it'll automatically give you a debugging prompt in the browser.
also, maybe try: <%= link_to "Delete member", member_path(@member.id), :method => :delete %>
?
Hey, @graysonwright. I had to change it to
<li class="member-link"> <%= link_to "Delete member", member_path(@members.find(member.id)), :method => :delete %> </li>
Does that make sense to you why we couldnt do the other ways?
@graysonwright so.... I just dont quite understand why heroku is displaying like this right now
do I have to pay for it? Is this because it is snoozing? I dont see any css be loaded. on the other hand my local app seems to be pretty much exactly how I want it (woo!)
Hey, Michael! Whenever something goes wrong on the page, check the JS console. Here's what I'm seeing:
Also, you should probably open another issue for the CSS problem, because it isn't related to deleting the members.
The CSS problem should be taken care of with #11.
This issue is solved with 53698f0
^^ "issue solved with ####"... This is a good workflow habit. Thanks!
Hey, @wrightmhw – I tracked this down using
git bisect
, and I think I found the problem. I left a few comments here.Also, you should read about git bisect. It's awesome and makes your life a lot easier when something was working before but now it's not.