Comments (7)
このサンプルコードを実行するのに必要な環境作りに難航しているのですが、ExtJSの部分は再現するのに必須ですか?
from jpmobile.
bundle install
bundle update
rake db:migrate
してたいだいて
./script/rails s
で実行できるとおもいます。
トップにアクセスしてもらうと"index"としますので
"test"をいてもらうとdeviseの認証になるので登録してみてください
するとtestにアクセスできます。
同じのをdocomoのcookie非対応でtrans_sidつきで回すとログイン無限ループになります
よろしくお願いします。
from jpmobile.
今のテスト環境だと、JavaScript runtimeが入っていないので、下記のエラーが出て rails コマンドが実行できません。
Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes.
なので、できれば最小構成で再現できるコードをいただけると助かります。
from jpmobile.
rails3.1の素でビルドした状態なんですよね……
3.1からJavaScript runtimeが必須になったようなきがしますが
最小構成で再度つくってみます。
from jpmobile.
一応pushしましたが、ここにかいてあるのをしただけです。
http://stackoverflow.com/questions/5955004/ruby-on-rails-3-1-without-execjs
from jpmobile.
Node.jsとmemcachedをインストールして再現できることを確認したのですが、
jpmobileではいまのところActiveRecordStoreのみでMemCacheStoreに対応していません。
ActiveRecordStoreに変更してみたところ、ループせずに動作しました。
対応予定はありますが、すぐには対応できないので、
いまのところはActiveRecordStoreを使うようにしてください。
from jpmobile.
MemCacheStoreに対応してないとは申し訳ありません。。。
複数の別案件のそれぞれのチームから同時にきてみんなで頭抱えていました。
メンバーが動作するpatchつくったので参考までにはっておきます。
class Rack::Session::Memcache
def destroy_session(env, session_id, options)
with_lock(env) do
@pool.delete(session_id)
generate_sid unless options[:drop]
end
session_id || generate_sid
end
end
class ActionDispatch::Session::MemCacheStore
def extract_session_id(env)
request = ::Rack::Request.new(env)
if request.params[@key] and !@cookie_only
sid = request.params[@key]
end
sid ||= request.cookies[@key]
sid
end
end
initializerで対応できます。。
参考までにはっておきます。
from jpmobile.
Related Issues (20)
- メール転送エージェントを起動していないとテストで落ちる HOT 2
- README中のサンプルコードがリンクとして解釈されてしまっている HOT 2
- bundle installに--pathを付けるとテスト実行時にGemが見つけられない件 HOT 2
- タイポ? HOT 2
- undefined method `extract_handler_and_format` と出てしまう (Ruby2.2.0 / Rails 4.2.3) HOT 5
- raise error in `fetching from https://rubygems.org/` when bundle install HOT 9
- rails3.2.22.2にて、rails側はActionView::FileSystemResolver#queryメソッドの引数を増やしています HOT 1
- rails-4-2ブランチ で NoMethodError: undefined method `to_crlf' for "":String HOT 1
- Source change broke Rails < 5.1 support HOT 3
- mail 2.7.0でBody#only_us_ascii?が無くなった HOT 4
- Ruby 2.7 support on jpmobile 7.0 HOT 3
- TargetRubyVersion 3.0 対応
- UA-CHに対応する
- 非PC向けテンプレートだけが存在するエンドポイントで、コントローラでのアクション定義を省略できない HOT 9
- Rails 7.0では常にHAMLよりERBのテンプレートが優先されてしまう HOT 1
- 元々_mobileとついているテンプレートファイル名が使えない HOT 3
- Dependency Dashboard
- ApplicationController::Liveがtest_case.rbで定義されたnew_controller_threadを呼ぶ HOT 7
- 7.0.4 のタグとコミットが push されていなさそうです HOT 2
- request.mobile.displayがNilclassになってしまう HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jpmobile.