similar to: Using a controller to initiate a plugin?

Displaying 20 results from an estimated 10000 matches similar to: "Using a controller to initiate a plugin?"

2006 Mar 02
1
web serveces problem
Hi, I''m trying to added layered web services to my application and from some reason it''s not working for me. i''m working with ruby 1.84, rails 1.0. here are my files: 1. app/apis/kate_api.rb: class KateAPI < ActionWebService::API::Base inflect_names false api_method :check_version, :expects => [:string], :returns => [:string] end 2.
2006 May 06
23
New Rails app is not working... I am missing something
Hi, So I have two rails applications working on my box. Theya re both tutorials that I walked through step by step. Now I am trying to write my own application and something is not working. My server is OS X 10.3.x. I am using Apache 1.3.x as the webserver with fcgi. As I mentioned before all is well with the apps that I had walk through tutorials with, but my app is not working. I
2006 Feb 13
3
TypeError
What might cause this error? TypeError (singleton can''t be dumped): /usr/lib/ruby/1.8/pstore.rb:159:in `dump'' /usr/lib/ruby/1.8/pstore.rb:159:in `dump'' /usr/lib/ruby/1.8/pstore.rb:138:in `transaction'' /usr/lib/ruby/1.8/cgi/session/pstore.rb:90:in `update'' /usr/lib/ruby/1.8/cgi/session/pstore.rb:97:in `close''
2006 Mar 08
6
GD error...
Hi! I''m new in ruby/rails programming and i have a small problem. I have installed InstantRails 1.0 (for Ruby/Rails/Mysql/Apache envs) and I''m trying to make a small app working. I''m using auth_generator for making a login page/users admin pages... and I have a problem when trying to CHANGE the avatar for the user. I have the following error: MissingSourceFile
2006 Jan 11
6
Help -- NoMethodError in
Hi, I am just learing Rails and I am going through the Agile Web Development with Rails book. I am receiving: NoMethodError in Store#add_to_cart undefined method `add_product'' for #<StoreController:0x3764d80> RAILS_ROOT: ./script/../config/.. Application Trace | Framework Trace | Full Trace #{RAILS_ROOT}/app/controllers/store_controller.rb:12:in `add_to_cart''
2006 Jan 18
1
Another uninitialized constant question
Guys, I''m trying to generate a scaffold to admin a table called hangars. I''d like the controller to fall with an "admin" sub-module. I used the command: script/generate scaffold Hangar Admin::Hangar This seemed to work, and placed the controller in controllers/admin/hangar_controller.rb, where I expected to find it. It also created the hangar.rb model in
2006 Jan 22
2
a newbie doomed in the first introduction to ruby.
Hello, I have bought the Dave Thomas Agile Developtment with Rails. (I have previously bought and read his Programming with Ruby book) On my winxp sp2 system ruby 1.8.15 (one click installer), rails 1.0framework (with ruby gems) and mysql 5.0 are installed. While following the example stated in the Chapter Building an Application I had following problem. After creating databases for test,
2006 Jun 26
9
Form Mail
What is the most RoR friendly way of making a form mailer similar to this php one? http://tips-scripts.com/?tip=form_mail#tip Or is it easier just to use the php with RoR? -- Posted via http://www.ruby-forum.com/.
2006 Mar 21
2
Rails newbie can''t initialize a new Paginator object
Hi all, I''m using ruby 1.8.2-15 and a recent rails 1.0 download. I''m trying to implement the Classic/Custom pagination in a list action. Here''s my code: def list getSearchTerms # NOTE: @params[:search_results] is an Array of product_data objects # returned by a search action. @results = @params[:search_results] if @results.nil? then # The default
2006 Jan 09
1
Cooky Cookies
Hi All, I have a problem with the stemming(?) in rails. I have a table cookie and a Cookie model which I have generated a scaffold for. The problem is that rails starts looking for a file that it calls "cooky.rb", this must be some kind of misunderstanding between me and rails, but how do I correct it? Other scaffolds work just fine. /Hugo NameError in Cookie#index uninitialized
2006 Jan 10
1
Cooky cookies causes trouble
Hi All, Yesterday wrote about my troubles with naming a table and model cookies and cookie respectively. I know that everybody hates the newbie screaming bug as soon as he encounters behaviour he doesn''t understand. But I''ve reproduced the error in the simplest application possible, and dare therefore say that this quite possible could be a bug in Rails. Database: CREATE TABLE
2006 Feb 08
5
beginner - problem with understanding relationships
Hi folks, I''m new to this... so hopefully someone can help me. I have a few objects... Property and Address and Landlord... where a Property has an address and a landlord has an address also. I''ve modelled this in the db with the properties table having an address_id and the landlord table having an address id. My rb looks like: class Property < ActiveRecord::Base
2005 Mar 02
3
uprgrade to 0.10: uninitialized constant Class::Object
Hi, I installed rails 0.10 with ruby gem, and upgraded my application as described at http://manuals.rubyonrails.com/read/book/15 . Now, when accessing the action index of the controller rss_feed, I get this error in the terminal when I started the server: #<NameError: uninitialized constant Class::Object>
2006 Mar 07
4
Edge Rails - same code, different issues on mac and windows
Trying to get an app up and running with Edge Rails, and I''ve run into different issues on Mac and Windows with the exact same code. It''s similar to the issue posted in the previous RJS/Edge Rails thread, but I didn''t see any answers in there (maybe I missed the real answer?) Both console/error outputs listed below: I can''t even get WEBrick to start on
2005 Jan 29
6
Newbie: Unable to run new controller.
I''m only just learning to use Rails, but this seems like something very out of my control. I used GEM to download and install Rails, then created a new application and a controller and started the WEBrick server. When I try to access the new controller "Test" using http://localhost:3000/test/ I get a "Not Found" error and a great deal of output from the server
2006 Jan 14
19
Stopping WEBrick?
Is there any way to request WEBrick to shutdown besides hitting CTRL-C at the console? I''m looking for, perhaps, a script/shutdown command, or perhaps a special URL that will request WEBrick to die. It can be a command run in a different shell, or, as I said, a special URL. Anyone? Tom Harris Cisco Systems -- Posted via http://www.ruby-forum.com/.
2006 Mar 28
7
Is Ruby stable for production use?
Hi, I realise that Windows is a poor platform and that Webrick is a development, not production, server. However, we have started seeing this crop up when perfectly simple page to page links are invoked... [2006-03-28 08:32:21] ERROR Errno::ECONNABORTED: Software caused connection abort /usr/lib/ruby/1.8/webrick/httpresponse.rb:324:in `write''
2010 Mar 18
13
ERROR NoMethodError: private method `gsub!' called
I have just upgraded to Ruby 1.8.7 and Rails 2.2.2. My previous project was at Ruby 1.8.6 and Rails 2.0.2. My platform is Windows and Webrick for development. When I run Webrick, the server starts without error, the application runs, database connections work and I can click through the pages and display data. But it does not serve any stylesheets or javascript files. What''s
2006 Jan 27
5
Newbie:Adding a new Table-Strange Error
Hi Everybody, I am a newbie in this list so please forgive me if this is a lengthy message. Currently I am working on a project at my work place that includes viewing some oracle tables(I do not have control over to rewrite the tables) and searching the tables based on a given criteria with Rails. Up untill now everything was working great. The database consists of a lot of tables but I was
2006 Jan 15
4
Redcloth gem properly installed ... still errors
Hi all, installed redcloth for using the object.attrib.textilize method in a template. Using 3.0.3 because it supoosedly works the best with rails 1.0.0. Keep getting the undefined method error. Did the require thingy, but no luck What would be the most I''m-a-guru place to put the require btw? Thanx. Gerard -- "Who cares if it doesn''t do anything? It was made with