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
|
# GET /orgas/new
|
||||||
def new
|
def new
|
||||||
@orga = Orga.new
|
@orga = Orga.new region_id: params[:region]
|
||||||
end
|
end
|
||||||
|
|
||||||
# POST /orgas
|
# POST /orgas
|
||||||
|
|
|
@ -34,10 +34,10 @@
|
||||||
|
|
||||||
%footer.bottom
|
%footer.bottom
|
||||||
%nav
|
%nav
|
||||||
= link_to new_event_path do
|
= link_to new_event_path region: params[:region] do
|
||||||
%em.fa.fa-pencil
|
%em.fa.fa-pencil
|
||||||
= t '.propose'
|
= t '.propose'
|
||||||
= link_to new_orga_path do
|
= link_to new_orga_path region: params[:region] do
|
||||||
%em.fa.fa-users
|
%em.fa.fa-users
|
||||||
= t '.propose_orga'
|
= t '.propose_orga'
|
||||||
%br/
|
%br/
|
||||||
|
|
Loading…
Reference in New Issue