New organisation is set using the url region
This commit is contained in:
parent
3f88e82bfd
commit
d69a3f8f06
@ -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
|
||||
|
@ -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/
|
||||
|
Loading…
Reference in New Issue
Block a user