fixes in member info

This commit is contained in:
Saurabh Bhatia 2014-06-18 20:24:26 +08:00
parent a2774033a4
commit 8657977cd7
13 changed files with 51 additions and 1 deletions

View File

@ -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/

View File

@ -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/

View File

@ -59,7 +59,7 @@ private
end
def info_params
params.require(:info).permit!
params.require(:member_info).permit!
end
protected

View File

@ -0,0 +1,7 @@
class MembersController < ApplicationController
def index
end
def show
end
end

View File

@ -0,0 +1,2 @@
module MembersHelper
end

View File

@ -0,0 +1,2 @@
<h1>Members#index</h1>
<p>Find me in app/views/members/index.html.erb</p>

View File

@ -0,0 +1,2 @@
<h1>Members#show</h1>
<p>Find me in app/views/members/show.html.erb</p>

View File

@ -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

View File

@ -162,6 +162,8 @@ Orbit::Application.routes.draw do
end
end
resources :members
resources :sites do
get 'mail_setting'
get 'site_info'

View File

@ -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

View File

@ -0,0 +1,4 @@
require 'test_helper'
class MembersHelperTest < ActionView::TestCase
end