I want to create a data-driven application trying ruby on rails for a
real estate site by accessing a real estate listing database.
I currently use Flash as my development tool. My level of experience in
Flash is intermediate, I have done no data-driven applications in Flash
besides using some XML.
Can someone point me in the direction for tutorials, examples, creating
data-driven sites in Flash using Ruby on Rails? Is this possible? I
know nothing...well something.
Your question is not very clear.
You want to develop a Flash app using RoR? I don't think it's a wise
route to take.
Why do you want it to be done in Flash?
If can tell your requirement we might be able to give you a more
specific answer.
In the mean time you can go to http://www.rubyonrails.org and check for
sample sites developed using RoR.
I have a method that's taking around 45 seconds to run, but before I tweak it I want to run the profiler on it, to learn exactly how much time each part requires. The method is in the Flag controller and is called qu_test. When I run this from the commandline I get:
Loading Rails...
Using the standard Ruby profiler.
/usr/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/base.rb:1129:in `method_missing': private method `qu_test' called for Flag:Class (NoMethodError)
from (eval):1:in `profile_me'
from /usr/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/commands/performance/profiler.rb:31
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:21:in `require'
from /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in `require'
from ./script/performance/profiler:3
Moving the method into the flag.rb file doesn't seem to make a difference. I think I am missing something fundamental about namespaces in Ruby- anyone know a fix for this problem, and what are some good resources for learning more about namespaces in general?