forked from saurabh/orbit4-5
fixes in member info
This commit is contained in:
parent
a2774033a4
commit
8657977cd7
|
@ -0,0 +1,3 @@
|
|||
# Place all the behaviors and hooks related to the matching controller here.
|
||||
# All this logic will automatically be available in application.js.
|
||||
# You can use CoffeeScript in this file: http://coffeescript.org/
|
|
@ -0,0 +1,3 @@
|
|||
// Place all the styles related to the members controller here.
|
||||
// They will automatically be included in application.css.
|
||||
// You can use Sass (SCSS) here: http://sass-lang.com/
|
|
@ -59,7 +59,7 @@ private
|
|||
end
|
||||
|
||||
def info_params
|
||||
params.require(:info).permit!
|
||||
params.require(:member_info).permit!
|
||||
end
|
||||
|
||||
protected
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
class MembersController < ApplicationController
|
||||
def index
|
||||
end
|
||||
|
||||
def show
|
||||
end
|
||||
end
|
|
@ -0,0 +1,2 @@
|
|||
module MembersHelper
|
||||
end
|
|
@ -0,0 +1,2 @@
|
|||
<h1>Members#index</h1>
|
||||
<p>Find me in app/views/members/index.html.erb</p>
|
|
@ -0,0 +1,2 @@
|
|||
<h1>Members#show</h1>
|
||||
<p>Find me in app/views/members/show.html.erb</p>
|
|
@ -0,0 +1,11 @@
|
|||
OrbitApp.registration "Member", type: 'ModuleApp' do
|
||||
module_label 'member.member'
|
||||
base_url File.expand_path File.dirname(__FILE__)
|
||||
|
||||
version "0.1"
|
||||
organization "Rulingcom"
|
||||
author "RD dep"
|
||||
intro "I am intro"
|
||||
update_info 'some update_info'
|
||||
frontend_enabled
|
||||
end
|
|
@ -162,6 +162,8 @@ Orbit::Application.routes.draw do
|
|||
end
|
||||
end
|
||||
|
||||
resources :members
|
||||
|
||||
resources :sites do
|
||||
get 'mail_setting'
|
||||
get 'site_info'
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
require 'test_helper'
|
||||
|
||||
class MembersControllerTest < ActionController::TestCase
|
||||
test "should get index" do
|
||||
get :index
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should get show" do
|
||||
get :show
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
end
|
|
@ -0,0 +1,4 @@
|
|||
require 'test_helper'
|
||||
|
||||
class MembersHelperTest < ActionView::TestCase
|
||||
end
|
Loading…
Reference in New Issue