We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6685d05 commit 4de8d69Copy full SHA for 4de8d69
app/controllers/networks_controller.rb
@@ -14,7 +14,7 @@ def new
14
end
15
16
def create
17
- @network = Network.new(params[:network])
+ @network = Network.new(params[:network].permit(:name))
18
respond_to do |format|
19
if @network.save
20
format.html { redirect_to networks_path, notice: "#{@network.name} Network was successfully created." }
0 commit comments