Comments (4)
app/views/users/show.html.erb line 54
app/views/users/index.html.erb line 19
show.html: <%= button_to "Destroy User", @user, :confirm => 'Are you sure?', :method => :delete %>
index.html: <%= button_to "Destroy", user, :confirm => 'Are you sure?', :method => :delete %>
unfortunately i don't know the CSS to style these Destroy buttons as plaintext links :-/
from reservations.
To solve this: add the following two lines to app/views/layouts
<%= javascript_include_tag :defaults %>
<%= csrf_meta_tag %>
Based on advice from : http://stackoverflow.com/questions/3774925/delete-link-sends-get-instead-of-delete-in-rails-3-view
from reservations.
confirmed; just add nick's two lines to the header of app/views/layouts/application.html.erb, works perfectly
from reservations.
repaired in nick's commit: 76e6ace
from reservations.
Related Issues (20)
- Reservation request approval doesn't quite persist HOT 1
- Importing users to ban them broken HOT 1
- Sensitive information on Equipment Model pages is available to the public HOT 1
- Cancelling an overdue reservation does not reset the overdue count on the model
- Recurring blackout conflict logic broken HOT 1
- Latest security fixes
- Link in flash when viewing as a different role is escaped out
- Update Loofah
- CSV USer Importer Bug HOT 1
- Update rack to Address Security Vulnerability
- Swap out Capybara-Webkit for Headless Chrome Driver
- Editing blackouts is broken HOT 1
- Date format
- Email return receipt HOT 1
- Error at checkout HOT 1
- View as guest shows equipment model requirements (but not visible to guests)
- Add Dockerfile HOT 2
- NoMethodError in ReportsController#subreport
- rake app:setup undefined method `noecho' HOT 1
- LDAP User Import Error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from reservations.