0
私はRailsが初めてで、自分のやり方を感じていますが、これは私を困惑させます。 私は別のモジュールすなわちにいくつかの定数を移動:私のコントローラで、その後Railsアプリケーションで「初期化されていない定数」を取得する
module Fns
Fclick = "function() { alert(\"You clicked the map.\");}\n"
...
end
が追加さ:
require "fns"
class GeomapController < ApplicationController
def index
fstring = Fns::Fclick
...
end
が、私は私が手にサーバーを実行します。
私は何uninitialized constant Fns::Fclick
を行方不明?