New organisation is set using the url region

This commit is contained in:
echarp 2017-05-27 18:57:30 +02:00
parent 3f88e82bfd
commit d69a3f8f06
2 changed files with 3 additions and 3 deletions

View File

@ -17,7 +17,7 @@ class OrgasController < ApplicationController
# GET /orgas/new
def new
@orga = Orga.new
@orga = Orga.new region_id: params[:region]
end
# POST /orgas

View File

@ -34,10 +34,10 @@
%footer.bottom
%nav
= link_to new_event_path do
= link_to new_event_path region: params[:region] do
%em.fa.fa-pencil
= t '.propose'
= link_to new_orga_path do
= link_to new_orga_path region: params[:region] do
%em.fa.fa-users
= t '.propose_orga'
%br/