We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2ff1b2e + 4de8d69 commit 8bfb851Copy full SHA for 8bfb851
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