similar to: Run ruby web app from command line

Displaying 20 results from an estimated 1000 matches similar to: "Run ruby web app from command line"

2011 Jun 09
3
Basic database question
Hi there Yes, I know very little of ruby. I must take a crash course? Probabily. Anyway, I try to ask this here. I have a control: customer_controller. From here, I can do something like: @id = 1 @customer = Customer.find(id) Now @customer will contain all the fetched record for customer with id = 1. Great. From this controller I will render an html page. Somewhere the view will print test.
2007 Mar 04
2
Installing
I have skimmed through many web pages, how to''s and editorials, my final conclusion is that the programming language for this particular part of the program is going to be Ruby. There are many reasons: 1. Apple will support it in 10.5 2. There seems to be a lot of support for it in the Mac community 3. Ruby developers seem to be Mac people. 4. There is better documentation than
2007 Apr 19
0
scRUBYt! 0.2.8
This is long overdue (0.2.8 is out for about a week already), but anyway, here we go: ============ What''s this? ============ scRUBYt! is a very easy to learn and use, yet powerful Web scraping framework based on Hpricot and mechanize. It''s purpose is to free you from the drudgery of web page crawling, looking up HTML tags, attributes, XPaths, form names and other typical
2009 Feb 21
2
Foreign-key confusion
Hi, I am a bit confused about managing the relationship between two of my tables: I have developed a script using scRUBYt that scrapes data from a website and dumps the following four fields into my Shows table: class CreateShows create table :shows do |t| t.string :date t.string :venue t.string :info t.string :comics The second table I created is called Theatres: class
2007 Jun 03
1
Require not working
Hi, I installed the require ruby gems and it is there in the lib directory .. but when i tried to call it using require its not working 1) with irb: i tired require ''rubygems'' its throwing me false and for require ''scrubyt'' its throwing the below given error message LoadError: no such file to load -- parse_tree_reloaded from
2006 May 10
2
trouble creating new records
Is it possible to create / save a new record from a controller other than the one I specified when I created the scaffolding? My situation is that I have two tables. Emrecs is the parent. Actors is the child and has a foreign key named emrec_id that references emrec.id. I scaffolded both, creating controllers and views for each. My app collects info from the user to fill in the two tables,
2007 Feb 20
7
How to Get data from Web Page to Database.
Hi, I want to get the details from a table which is displayed on a Web page into the Database. How to read that Web page ? I mean if there is table Student details like Roll no., name etc. And I want to read that table & store it into my database in table My_Student. How to do this? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are
2006 Mar 24
3
Picking apart the rails codebase / transitioning from novice
Alright, I''ve done some tinkering and I''ve read through the DHH book. I''d like to humbly solicit some advice from the rails gurus. I''d like to get a real firm grip, and it seems that navigating the actual codebase might be the best course of action. Any advice as to the best route to take for maximum comprehension? What would be the most sensible way to
2006 Mar 18
2
Need help with my view populating rows
Hello, I was talking with someone in IRC, trying to get one form with however many fields to make new rows. He worked with me on the controller, but then I didn''t get the help with the view I needed, and I''ve been trying to do it on my own. I''m uploading pictures to my Pictures table. As you know, I need a few fields for each picture. I''ll need the filename,
2012 Sep 20
6
Good books about the internals of Rails 3
Hi, I''m a new RoR and Ruby developer and I''m searching for some good resources (books or website) that go a little further than books like the railstutorial (which is excellent btw). But after reading this, I feel like as long as I''m working with scaffolding and simple gems, it''s ok, and a lot can be accomplished with this but I would like to have a deeper
2008 Jan 30
1
Import XML in mysql
Hi, I am using scrubyt for scraping a webpage. The output is xml: Example: <root> <item> <item_name>Canon Vertical Battery Grip BG-E3 For EOS Digital Rebel XT</item_name> <price>$179.00</price> </item> <item> <item_name>Canon Vertical Battery Grip BG-E4 For EOS 5D</item_name>
2011 Nov 19
3
undefined method `+@'
Any idea what might be wrong? ActionView::Template::Error (undefined method `+@'' for #<ActionView::OutputBuffer:0x00000002e51580>): -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to
2006 Apr 06
8
Fastest learning path to RoR
hi! with a 4GL background, wanting to learn RoR, what is the fastest learning path i should take? should i go grab a RoR tutorial, and learn Ruby along the way, or start with plain Ruby first? thanks for any inputs!
2007 Oct 23
3
Ruby on Rails and Oracle
Hello, I''m having a trouble when I try to connect RoR and Oracle. I believe that it has something to do with database.yml, this is how my database.yml looks: development: adapter: oci database: 127.0.0.1:1521/XE username: system password: y1984nip0359 host: 127.0.0.1 And this is the Error that i get: -> http://127.0.0.1:3000/blog OCIError in BlogController#index
2009 Mar 17
11
Refactoring module
Dear all Please see the following module, In module SX3 SX4 and SX5 have similar class Tasklist, but inherit from different class. I will use the following code to connect to different data sources RemoteSX3Model.establish_connection sx3_hash RemoteSX4Model.establish_connection sx4_hash RemoteSX5Model.establish_connection sx5_hash How can I refactor my code in module to look simpler? Thank you
2006 Mar 29
6
Simply Getting Post Params
I am a complete Rails newbie and am trying to understand how I can simply get the data from a password field in a form that is not mapped to a field in the database. The scenario is this. I have a User model that is mapped to a table users with the following fields: username, email_address, password and join_dt. Following pretty closely to the login section in the Agile Web Development with
2006 Apr 06
9
How to get Form values in RubyOnRails
Hi I want the FORM values on my controller.i.e. I want the values of login_loginname(Form variable) and login_password(Form variable) on login_controller.rb How can i do that? Table Name is: logins Model:: Login.rb Controller:: login_controller.rb Below is my test form loginname password Hoping for reply Regards Parikshit
2009 Jun 07
17
ActiveRecord Classes
I''m having a little trouble with understanding how to work out the schematic for some of my classes using ActiveRecord when a file is in my lib directory: Brief example: Here''s the outline of the files in use: ....app ........controllers ............application_controller.rb ............rushing_offenses_controller.rb ........models ............rushing_offense.rb ....lib
2007 Jan 04
5
Mashup Tutorial
Hi: I am looking for a good hands on web mashup tutorial? or books for that matter.. Google gives me bits and pieces of the info but not any step by step or hands on tutorial.. Thanks a bundle -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk"
2012 May 22
4
Creating formatted PDFs
Hello, I''m writing a mail-merge application with Ruby on Rails. I have one user-created template, wich he creates with a CKEditor (in HTML). I have a list of members, and in the "mailings" controller I mix the template with the members data to create a PDF with a letter to every member. This is all working correctly... Except one part: I don''t know how to render