Aptana Studioã®ç·´ç¿ ActiverScaffoldã®åä½è§£æï¼Searchç·¨ï¼
Aptana Studioã®ç·´ç¿ ActiverScaffoldã®åä½è§£æï¼Searchç·¨ï¼
ãµã£ã¨æãç«ã¡ãä»éçºä¸ã®ActiveScaffoldã®ãããã°éä¸ã®Threadé層ãæãã
Aptana Studioã®ããããã°ããã¥ã¼ã®ç»é¢ã§ãã
å®æ½ããæä½
ActiveScaffoldã«ã¦ï¼çµã®ã¢ãã«ãã³ã³ããã¼ã©ãä½æã
ãããã°ã¢ã¼ãã§developmentãmongrelãµã¼ããèµ·åãããã©ã¦ã¶ãã該å½ã¢ãã«ã®URLã«ã¢ã¯ã»ã¹ã
åç´ã«listã®ã¢ã¯ã·ã§ã³ãå®äºããã
ããã§ããããã¬ä¸ã§ã³ã³ããã¼ã©ã¼ã®ãã¡ã¤ã«å
é ãã
class StoreController < ApplicationController active_scaffold :store layout "layout"
ãã¬ã¼ã¯ãã¤ã³ãã¯active_scaffold :storeã®è¡ã«é
ç½®ã
ããã«ä»åº¦ã¯ãsid1="-700"ãã¨ããããã¹ãã¬ã³ã¼ãã«å¯¾ãã¦ï¼ä»¶ã®ã¿ãããããæ¡ä»¶ã§Searchãã¿ã³ãã¯ãªãã¯ã
Searchéå§ã
ãããã¬ä¸ã§ã®æä½
Searchå®è¡å¾ãã¡ããã¨ä¾ã®ãã¬ã¼ã¯ãã¤ã³ãã®è¡ã§å¦çãåæ¢ããã
ããããã¹ããããªã¼ãã¼ã2åå®è¡ã
layoutã®è¡ãã¹ããããªã¼ãã¼ããç´å¾ã«ä»¥ä¸ã®Threadãåºã¦é層ãä¸æ°ã«å¢ãã¦ãdependencies.rb:343ã§å度æ¢ã¾ãã
ããã§æ¢ã«ç§ã®ç´ 人ç¥èã§ã¯ï¼ï¼ï¼ããä½æ
ãããªãé£ãã ã®ãï¼ããã©ãã«é£ãã ã®ãï¼ããä½ãã©ãç¶æ
ãåããã®ãï¼ããã£ã±ãå¤ããªãããã¤ãã§ãã¨ããã§è«¦ãã¦ã¾ããã
ã§ãä»å¤ã¯ããå°ã追ã£ã¦ã¿ã¾ããå®ã¯ãæ°ããæ©è½ã¨ãã¦ãç´åã®Searchæ¡ä»¶ãcookieãä½ãã«ä¿æããç´å¾ã«CSVåºåã®ã¢ã¯ã·ã§ã³ãå®è¡ãããããã®Searchæ¡ä»¶ãè¾¼ã¿ã§çµè¾¼ã¿åºåãããããã¨ããã®ãåºã¦ããã®ã§ãã©ã®ããã«æ¡ä»¶ãä¿æãã¦ããã®ãç¥ãããã£ãã®ã§ãã
Ruby Thread - 178 (Step end at C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:343) C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:343 C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:202 C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:94 C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:248 C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:452 C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:464 C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/inflector.rb:250 C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/inflector.rb:250 C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/core_ext/string/inflections.rb:148 C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.5/lib/action_controller/routing.rb:1317 C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rails-1.2.5/lib/dispatcher.rb:40 C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel/rails.rb:78 C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel/rails.rb:76 C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel.rb:618 C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel.rb:617 C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel.rb:736
ããããã°ããã¥ã¼ã®ä¸ã®ä¸è¨ã®åè¡ãä¸ä¸ã«é¸æããªããã¨ããå¤æ°ããã¥ã¼ãããã°ã©ã ã½ã¼ã¹ã®ãã¥ã¼ã®ç¶æ
ãå¤ããã¾ãã
ã§ããã®ãã¹ã¨è¡çªå·ã®ç¾
åããä¸ããä¸ã¸ã®ã½ã¼ã¹ã®å¼ã³åºãé ã§ãããã¨ã«ããã£ã¨æ°ãä»ãããããã¹ã¬ããã®ã¹ã¿ãã¯ãã¬ã¼ã¹æ
å ±ã£ã¦ãã¨ã§ããï¼ãªãã»ã©ã
以åã¯ãã®ç¶æ
ã«ãªã£ã¦ããé©å½ã«è§¦ã£ã¦ãé©å½ã«ã¹ããããé²ããã¨ãã£ã¡ããã£ã¡ãã«é£ãã§ãã£ã±ãåãã追ãã¦ãæ°ããã¾ããã§ãããä»åã¯ãããããï¼
ã
ã§ãå·éã«è¦ãã¨ã
- activesupportãï¼ï¼ï¼
- actionpackãã«ã¼ãã£ã³ã°è§£æ±º
- railsãRailsã¢ããªã®ãã£ã¹ãããå¦ç
- mongrelãWebãµã¼ãå´ã®å¦çï¼ãªã¯ã¨ã¹ããã¬ã¹ãã³ã¹ï¼
ã®ï¼é層ã®å¦çã§ããã
ãªãã¨ãªãActiveScaffold以åã®å¦çã®å¦çä¸ã®ãããªæ°ããã¦ãã¾ããã
ä¸ã®ã»ãã¯ãããããã ã
ãã¨ä¸ã¤è£è¶³ããã¨ããã¬ã¼ã¯åæ¢ä¸ã®åã½ã¼ã¹éã§ã¸ã£ã³ãããä½ç½®ã¨ããã®ã¯ç¢å°ã§è¡¨ç¤ºããã¦ããã®ã§ããã
- ç¾å¨åæ¢ä¸ã®ææ°ã®ä½ç½®ãéç¢å°ãï¼ã¤ã ããä¸çªä¸ã®è¡ã®ã¿
- ãã以åã®åã¡ã½ããéã§ã®ã¸ã£ã³ãä½ç½®ãéç½ç¢å°ããã以å¤
ã¨ãã表示ã«ã¼ã«ããããã¨ã«ãæ°ãä»ããã
Mongrel
C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel.rb:617
ãã®é層ã§ã
# Process each handler in registered order until we run out or one finalizes the response. handlers.each do |handler| handler.process(request, response) break if response.done or client.closed? end
ã¨ããå¦çãããã
ããrequestãresponseã¨ããããããå¤æ°ã渡ããã¦ããã
ã¨ãããã¨ã§ãå¤æ°ããã¥ã¼ã«ã¦å¤æ°å
容ããã§ãã¯ã
requestãªãã¸ã§ã¯ãã®å
容
request #<Mongrel::HttpRequest:0x5645078> @body #<StringIO:0x5645064> @dispatchers Array[0] @params Mongrel::HttpParams[25] 'SERVER_NAME' "localhost" 'HTTP_X_PROTOTYPE_VERSION' "1.5.0" 'PATH_INFO' "/store/update_table" 'HTTP_ACCEPT_ENCODING' "gzip,deflate" 'HTTP_USER_AGENT' "Mozilla/5.0 (Windows; U; Windows NT 5.1; ja; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5" 'SCRIPT_NAME' "/" 'SERVER_PROTOCOL' "HTTP/1.1" 'HTTP_ACCEPT_LANGUAGE' "ja,en-us;q=0.7,en;q=0.3" 'HTTP_HOST' "localhost:3000" 'REMOTE_ADDR' "127.0.0.1" 'SERVER_SOFTWARE' "Mongrel 1.0.1" 'HTTP_KEEP_ALIVE' "300" 'REQUEST_PATH' "/store/update_table" 'HTTP_REFERER' "http://localhost:3000/store" 'HTTP_COOKIE' "_store_session_id=e2b5dac1930bbfb837cf39c133acb657" 'HTTP_ACCEPT_CHARSET' "Shift_JIS,utf-8;q=0.7,*;q=0.7" 'HTTP_VERSION' "HTTP/1.1" 'REQUEST_URI' "/store/update_table?search%5Bid%5D=&search%5Bkanban_id%5D=&search%5Bactive%5D=&search%5Bstep%5D=&search%5Bupdated_at%5D=&search%5Bcreated_at%5D=&search%5Bhinban%5D=&search%5Bseirino%5D=&search%5Bh%5D=&search%5Bs%5D=&search%5Bsid2%5D=&search%5Bsdt2%5D=&search%5Bsid1%5D=701-&search%5Bsdt1%5D=&search%5Bsid0%5D=&search%5Bsdt0%5D=&search%5Bstorehinban%5D=&search%5Bstoreno%5D=&search%5Blineno%5D=&commit=Search" 'SERVER_PORT' "3000" 'GATEWAY_INTERFACE' "CGI/1.2" 'QUERY_STRING' "search%5Bid%5D=&search%5Bkanban_id%5D=&search%5Bactive%5D=&search%5Bstep%5D=&search%5Bupdated_at%5D=&search%5Bcreated_at%5D=&search%5Bhinban%5D=&search%5Bseirino%5D=&search%5Bh%5D=&search%5Bs%5D=&search%5Bsid2%5D=&search%5Bsdt2%5D=&search%5Bsid1%5D=701-&search%5Bsdt1%5D=&search%5Bsid0%5D=&search%5Bsdt0%5D=&search%5Bstorehinban%5D=&search%5Bstoreno%5D=&search%5Blineno%5D=&commit=Search" 'HTTP_ACCEPT' "text/javascript, text/html, application/xml, text/xml, */*" 'HTTP_X_REQUESTED_WITH' "XMLHttpRequest" 'HTTP_CONNECTION' "keep-alive" 'REQUEST_METHOD' "GET" @socket #<TCPSocket:0x5657ebc>
ãµããããã«ãã£ã¦@paramsã®'QUERY_STRING'ã«æ¤ç´¢æ¡ä»¶ãå
¥ã£ã¦ããã¨ãå¤æããããä»ã®æ¤ç´¢å
¥åã¯ç©ºã§å®è¡ãããå
¨é¨ãã©ã¡ã¼ã¿æ¸¡ãããã¦ããªããsearch%5Bââ%5D=&ã£ã¦ãªã£ã¦ããã©ãã¤ã¾ãsearch[ââ]=â³â³&search[ââ]=â³â³â¦ã£ã¨ãããã©ã¡ã¼ã¿ã¨ãããã¨ã§ãããââãã«ã©ã åãâ³â³ãæ¤ç´¢æ¡ä»¶ãã¼ã
ã¾ãcookieã«ä¿åãã第ï¼åè£ã¨ãã¦ããã®request.@params['QUERY_STRING']ãä¸ããã¾ããã
Mongrelã®CGIã©ããã¼
ã§ããæ´ã«å
ãã
以ä¸ã®ã¹ã¿ãã¯é層ãè¦ãã¨cgiãªãã¸ã§ã¯ãï¼Mongrel::CGIWrapperï¼ãé å¼µã£ã¦ããã¦ããããã§ãã
C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel/rails.rb:76
cgi #<Mongrel::CGIWrapper:0x5644df8> @args nil @cookies Hash[1] '_store_session_id' _store_session_id=e2b5dac1930bbfb837cf39c133acb657; path= @_dc_obj Array[1] [0] "e2b5dac1930bbfb837cf39c133acb657" @domain nil @expires nil @name "_store_session_id" @path "" @secure nil @value Array[1] [0] "e2b5dac1930bbfb837cf39c133acb657" @default_really_final nil @handler #<Mongrel::Rails::RailsHandler:0x53db0bc> @active_request_path "/store/update_table" @files #<Mongrel::DirHandler:0x53db058> @guard #<Mutex:0x53db044> @listener #<Mongrel::HttpServer:0x3eb2730> @tick Sun Feb 01 01:26:49 +0900 2009 @head Hash[0] @input #<StringIO:0x5645064> @multipart nil @out_called nil @output_cookies nil @output_hidden nil @params Hash[20] 'search[s]' Array[0] 'search[created_at]' Array[0] 'commit' Array[1] [0] "Search" 'search[h]' Array[0] 'search[kanban_id]' Array[0] 'search[storeno]' Array[0] 'search[id]' Array[0] 'search[sdt2]' Array[0] 'search[seirino]' Array[0] 'search[storehinban]' Array[0] 'search[sdt1]' Array[0] 'search[sid2]' Array[0] 'search[sdt0]' Array[0] 'search[sid1]' Array[0] 'search[sid0]' Array[0] 'search[hinban]' Array[0] 'search[updated_at]' Array[0] 'search[step]' Array[0] 'search[active]' Array[0] 'search[lineno]' Array[0] @request #<Mongrel::HttpRequest:0x5645078> @response #<Mongrel::HttpResponse:0x564508c>
ãªã®ã§ãããã使ããæå¾
ãã¾ããããã§ãä½è¨ãªæ¤ç´¢æ¡ä»¶ãæ£è¦åãããç¶æ
ã§æã¤ãã¨ãã§ããã°ãã£ã¨è¯ãæ°ãããã
ã§ãããã ã¨SQLæã«è¿ãããã»ãã¥ãªãã£çã«è¯ããªãï¼
ããã¾ã¦ãsid1=-700ã§æ¤ç´¢ããã¯ãâ¦Array[0]ã£ã¦ç©ºã£ã¦ãã¨ã ããªãã
å¨ãæºåãããã ãï¼
â¦å
ã«é²ã¿ã¾ãã
actionpack
ä¸æ°ã«actionpackã¾ã§ãããã¾ã§ã¯ä½ãå¤åãç¡ãã£ãã®ã§ããã
C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.5/lib/action_controller/routing.rb:1317
actionpackã«ç§»ã£ã¦ãããã@cgiã¯æ¸¡ãããã«requestã®ã¿ãparamsã®å
容ããã£ã¹ãããã£ã®ã«ã¼ãæ´çã§ãããã«ããã¦ããã
ä»åº¦ã®requestãªãã¸ã§ã¯ãã¯ActionController::CgiRequestã ããã§ãã
#<ActionController::CgiRequest:0x563c4a0 @cgi=#<Mongrel::CGIWrapper:0x5644df8 @out_called=false, @multipart=false, @handler=#<Mongrel::Rails::RailsHandler:0x53db0bc @guard=#<Mutex:0x53db044>, @files=#<Mongrel::DirHandler:0x53db058 @path="C:/InstantRails/rails_apps/store/public", @default_content_type="application/octet-stream", @index_html="index.html", @listing_allowed=false>, @active_request_path="/store/update_table", @listener=#<Mongrel::HttpServer:0x3eb2730 @socket=#<TCPServer:0x3eb26f4>, @acceptor=#<Thread:0x51ff70c sleep>, @workers=#<ThreadGroup:0x3eb26a4>, @port=3000, @classifier={"/"=>[#<Mongrel::Rails::RailsHandler:0x53db0bc ...>]}, @death_time=60, @num_processors=1024, @timeout=0, @host="0.0.0.0">, @tick=Sun Feb 01 01:26:49 +0900 2009>, @output_cookies=nil, @head={}, @params={"search[s]"=>[], "search[created_at]"=>[], "commit"=>["Search"], "search[h]"=>[], "search[kanban_id]"=>[], "search[storeno]"=>[], "search[id]"=>[], "search[sdt2]"=>[], "search[seirino]"=>[], "search[storehinban]"=>[], "search[sdt1]"=>[], "search[sid2]"=>[], "search[sdt0]"=>[], "search[sid1]"=>[], "search[sid0]"=>[], "search[hinban]"=>[], "search[updated_at]"=>[], "search[step]"=>[], "search[active]"=>[], "search[lineno]"=>[]}, @response=#<Mongrel::HttpResponse:0x564508c @body_sent=false, @body=#<StringIO:0x5645028>, @socket=#<TCPSocket:0x5657ebc>, @status=404, @status_sent=false, @header_sent=false, @header=#<Mongrel::HeaderOut:0x5644fd8 @allowed_duplicates={"WWW-Authenticate"=>true, "Set-Cookie2"=>true, "Set-Cookie"=>true, "Warning"=>true}, @out=#<StringIO:0x5645000>, @sent={"Date"=>true}>>, @output_hidden=nil, @request=#<Mongrel::HttpRequest:0x5645078 @body=#<StringIO:0x5645064>, @socket=#<TCPSocket:0x5657ebc>, @params={"SERVER_NAME"=>"localhost", "HTTP_X_PROTOTYPE_VERSION"=>"1.5.0", "PATH_INFO"=>"/store/update_table", "HTTP_ACCEPT_ENCODING"=>"gzip,deflate", "HTTP_USER_AGENT"=>"Mozilla/5.0 (Windows; U; Windows NT 5.1; ja; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5", "SCRIPT_NAME"=>"/", "SERVER_PROTOCOL"=>"HTTP/1.1", "HTTP_ACCEPT_LANGUAGE"=>"ja,en-us;q=0.7,en;q=0.3", "HTTP_HOST"=>"localhost:3000", "REMOTE_ADDR"=>"127.0.0.1", "SERVER_SOFTWARE"=>"Mongrel 1.0.1", "HTTP_KEEP_ALIVE"=>"300", "REQUEST_PATH"=>"/store/update_table", "HTTP_REFERER"=>"http://localhost:3000/store", "HTTP_COOKIE"=>"_store_session_id=e2b5dac1930bbfb837cf39c133acb657", "HTTP_ACCEPT_CHARSET"=>"Shift_JIS,utf-8;q=0.7,*;q=0.7", "HTTP_VERSION"=>"HTTP/1.1", "REQUEST_URI"=>"/store/update_table?search%5Bid%5D=&search%5Bkanban_id%5D=&search%5Bactive%5D=&search%5Bstep%5D=&search%5Bupdated_at%5D=&search%5Bcreated_at%5D=&search%5Bhinban%5D=&search%5Bseirino%5D=&search%5Bh%5D=&search%5Bs%5D=&search%5Bsid2%5D=&search%5Bsdt2%5D=&search%5Bsid1%5D=701-&search%5Bsdt1%5D=&search%5Bsid0%5D=&search%5Bsdt0%5D=&search%5Bstorehinban%5D=&search%5Bstoreno%5D=&search%5Blineno%5D=&commit=Search", "SERVER_PORT"=>"3000", "GATEWAY_INTERFACE"=>"CGI/1.2", "QUERY_STRING"=>"search%5Bid%5D=&search%5Bkanban_id%5D=&search%5Bactive%5D=&search%5Bstep%5D=&search%5Bupdated_at%5D=&search%5Bcreated_at%5D=&search%5Bhinban%5D=&search%5Bseirino%5D=&search%5Bh%5D=&search%5Bs%5D=&search%5Bsid2%5D=&search%5Bsdt2%5D=&search%5Bsid1%5D=701-&search%5Bsdt1%5D=&search%5Bsid0%5D=&search%5Bsdt0%5D=&search%5Bstorehinban%5D=&search%5Bstoreno%5D=&search%5Blineno%5D=&commit=Search", "HTTP_ACCEPT"=>"text/javascript, text/html, application/xml, text/xml, */*", "HTTP_X_REQUESTED_WITH"=>"XMLHttpRequest", "HTTP_CONNECTION"=>"keep-alive", "REQUEST_METHOD"=>"GET"}, @dispatchers=[]>, @default_really_final=false, @cookies={"_store_session_id"=>["e2b5dac1930bbfb837cf39c133acb657"]}, @input=#<StringIO:0x5645064>, @args=nil>, @symbolized_path_parameters=nil, @env={"SERVER_NAME"=>"localhost", "HTTP_X_PROTOTYPE_VERSION"=>"1.5.0", "PATH_INFO"=>"/store/update_table", "HTTP_ACCEPT_ENCODING"=>"gzip,deflate", "HTTP_USER_AGENT"=>"Mozilla/5.0 (Windows; U; Windows NT 5.1; ja; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5", "SCRIPT_NAME"=>"/", "SERVER_PROTOCOL"=>"HTTP/1.1", "HTTP_ACCEPT_LANGUAGE"=>"ja,en-us;q=0.7,en;q=0.3", "HTTP_HOST"=>"localhost:3000", "REMOTE_ADDR"=>"127.0.0.1", "SERVER_SOFTWARE"=>"Mongrel 1.0.1", "HTTP_KEEP_ALIVE"=>"300", "REQUEST_PATH"=>"/store/update_table", "HTTP_REFERER"=>"http://localhost:3000/store", "HTTP_COOKIE"=>"_store_session_id=e2b5dac1930bbfb837cf39c133acb657", "HTTP_ACCEPT_CHARSET"=>"Shift_JIS,utf-8;q=0.7,*;q=0.7", "HTTP_VERSION"=>"HTTP/1.1", "REQUEST_URI"=>"/store/update_table?search%5Bid%5D=&search%5Bkanban_id%5D=&search%5Bactive%5D=&search%5Bstep%5D=&search%5Bupdated_at%5D=&search%5Bcreated_at%5D=&search%5Bhinban%5D=&search%5Bseirino%5D=&search%5Bh%5D=&search%5Bs%5D=&search%5Bsid2%5D=&search%5Bsdt2%5D=&search%5Bsid1%5D=701-&search%5Bsdt1%5D=&search%5Bsid0%5D=&search%5Bsdt0%5D=&search%5Bstorehinban%5D=&search%5Bstoreno%5D=&search%5Blineno%5D=&commit=Search", "SERVER_PORT"=>"3000", "GATEWAY_INTERFACE"=>"CGI/1.2", "QUERY_STRING"=>"search%5Bid%5D=&search%5Bkanban_id%5D=&search%5Bactive%5D=&search%5Bstep%5D=&search%5Bupdated_at%5D=&search%5Bcreated_at%5D=&search%5Bhinban%5D=&search%5Bseirino%5D=&search%5Bh%5D=&search%5Bs%5D=&search%5Bsid2%5D=&search%5Bsdt2%5D=&search%5Bsid1%5D=701-&search%5Bsdt1%5D=&search%5Bsid0%5D=&search%5Bsdt0%5D=&search%5Bstorehinban%5D=&search%5Bstoreno%5D=&search%5Blineno%5D=&commit=Search", "HTTP_ACCEPT"=>"text/javascript, text/html, application/xml, text/xml, */*", "HTTP_X_REQUESTED_WITH"=>"XMLHttpRequest", "HTTP_CONNECTION"=>"keep-alive", "REQUEST_METHOD"=>"GET"}, @query_parameters={"commit"=>"Search", "search"=>{"updated_at"=>nil, "step"=>nil, "sdt0"=>nil, "sid0"=>nil, "hinban"=>nil, "storehinban"=>nil, "sdt1"=>nil, "sid1"=>"701-", "kanban_id"=>nil, "sdt2"=>nil, "sid2"=>nil, "id"=>nil, "storeno"=>nil, "s"=>nil, "h"=>nil, "seirino"=>nil, "lineno"=>nil, "created_at"=>nil, "active"=>nil}}, @path_parameters={"action"=>"update_table", "controller"=>"store"}, @request_parameters={"commit"=>"Search", "search"=>{"updated_at"=>nil, "step"=>nil, "sdt0"=>nil, "sid0"=>nil, "hinban"=>nil, "storehinban"=>nil, "sdt1"=>nil, "sid1"=>"701-", "kanban_id"=>nil, "sdt2"=>nil, "sid2"=>nil, "id"=>nil, "storeno"=>nil, "s"=>nil, "h"=>nil, "seirino"=>nil, "lineno"=>nil, "created_at"=>nil, "active"=>nil}}, @cookie_only=nil, @request_method=:get, @parameters=nil, @content_type=nil, @session_options={:tmpdir=>"C:/InstantRails/rails_apps/store/tmp/sessions/", :database_manager=>CGI::Session::PStore, :session_path=>"/", :prefix=>"ruby_sess."}>
ããåéãã§ããcgiãªãã¸ã§ã¯ããä¸ãè¦ãã¨ããããã§ãã
ã§ã @query_parameters ã¨ããã®ãåºæ¥ã¦ã¾ããWebã®ä¸çããã ãã¶Rubyãªä¸çã®è¡¨ç¾ã«ãªã£ã¦ã¾ããããããSQLã«å¤æãããã®ã¯ãã¤ã®æ¥ãâ¦
ã§ã次ã®é層ãè¦ãã¨ãã©ããactivesupportãå¼ã³åºããã¦ãStoreControllerã®å®æ°ãå®ç¾©ï¼ï¼constantizeï¼
ãã®æ¬¡ãè¦ã¦ããªãã¨ãªããããããä¸ä½ã¯method_missingããåçã«Controllerã¯ã©ã¹ãèªã¿è¾¼ããã¨ããå¦çã§ä»åã®Searchã¯ãã®å¦çã®å¾ã£ã½ãã¨æãã¾ããã
ãªã®ã§ãããã§actionpackã®actioncontrollerã®ç®æã§ãã¬ã¼ã¯ãã¤ã³ããç½®ãã¦é²ããã¨ããã¨â¦ããããAptanaStudioãåºã¾ã£ãï¼æ±ï¼é·æéãªã¯ã¨ã¹ããã²ã£ã±ãããªã¼ï¼å°ï¼æéãããï¼ï¼ãããã¯åèµ·åã§ããã
Aptanaã§ã¯ãjavaw.exeãruby.exeã®ããã»ã¹ãæ®ã£ã¦ãã¾ãè½ã¡ããæã
ãã¾ããããå度å®è¡ãã¦èµ·åããªãå ´åã¯ãã®è¾ºã®ããã»ã¹ãæªããã¦ãªãã確èªã§ããã
ï¼é¦¬é¹¿é·ãããã«ç¶ãï¼