similar to: Simplest way to demonstrate a RoR app

Displaying 20 results from an estimated 7000 matches similar to: "Simplest way to demonstrate a RoR app"

2006 Jun 16
4
duplicate entry issue in acts_as_taggable gem
Hi, I am using the ''acts_as_taggable'' gem and have issues when I try to ''tag'' an entity with a ''tagname'' already defined. i.e 1) book[1].tag(''science'',''paperback'') --> works fine 2) book[2].tag(''roman'',''physics'',''paperback'') --> creates an
2006 Jun 05
6
HTML Parsing libraries
Hi, What is the best way to parse HTML? Or is there a simple way to convert a table to an array? I tried beautiful_soup and the built-in htmltools, but have trouble getting them to run. Any pointers? Thanks, Hari -- Posted via http://www.ruby-forum.com/.
2006 Jun 06
6
Linking two tables using a lookup table
Hi, How do I associate two different tables which have a lookup id (table) as common. I tried the has_many :table2, :through => look_up_table in my table1 model. Any hints? Thanks, Hari -- Posted via http://www.ruby-forum.com/.
2006 Aug 04
3
Migration::alter statements ??
Hi, Where to put the execute statements in migration scripts? e.g, I would like to create a table and add a foreign_key reference. def self.up ?? execute "alter table ...." create_table :my_table do |t| t.column :user, :string end ?? execute "alter table ...." end Should the execute statement be above the table creation or below the table creation? Logically I
2006 Jul 03
2
redirect as post?
Hi, How can I make sure the redirect should act as a "POST" method and not as "GET"? Thanks, Hari -- View this message in context: http://www.nabble.com/redirect-as-post--tf1884434.html#a5151391 Sent from the RubyOnRails Users forum at Nabble.com.
2006 Jun 19
10
text_field_with_auto_complete doesn|t work in edit/show view
Hi, I am using the autocomplete for text field with ''Scriptaculous'' and it works perfectly fine in "new" action. All the examples I see are only for the "new" action. But doesn''t default to the selected value/text in "edit/show" action? Is this possible or should I write custom code for "edit/show" action? Thanks, Hari --
2005 Mar 04
4
Upgrading broke the .find methods???
I just updated to rails (via gem) and now all my .find..... methods give me "wrong number of arguments(3 for 0)" with the exception of find_by_sql which works fine but I want to avoid for obvious reasons. I''ve tried simplifying everything down to the bare minimum Priorities.find(1) and I printed out Priority.table_name to confirm it was still correct. What gives? Did I
2006 Jul 28
8
mass emails
Say we have 20k-50k users signed up for an email newsletter. Does anyone have any data on how well ActionMailer does with mass emails? How long would that take to send? Anything I should watch out for? Thanks, Joe
2006 Jun 21
14
[Bounty] 1 pizza for 1 simple plugin
So here''s the deal. I don''t know the innards of rails well enough to do this quickly but you might. First person to write this and release it under MIT license or public domain, and tells me, gets a free pizza from your favorite local delivery place. You pick the toppings, I''ll call ''em and order it up for you. Yeah a pizza isn''t much but I''m
2006 Jun 05
3
Interactive debugging of rails models
Hi, How can I debug the models interactively? When I load the console using "ruby script/console", the changes in the models doesn''t get reflected. I have exit the console and reload the console everytime I make some changes. Is there a better way? Thanks, Hari -- Posted via http://www.ruby-forum.com/.
2006 Jul 11
4
how get a substring of a string
hello all i want to get the substring of a string i found a source that do it...but don''t work in my machine example "the source of ruby".chars[0..5] that must return "the so" -- Posted via http://www.ruby-forum.com/.
2006 Aug 15
4
How to run autotest(Zentest)
Hi, When I start the "autotest" it gives me the following error...not sure what HOME path I have to set...all Ruby/Rails related components are in path! --- C:\>autotest -rails C:/Tools/InstantRails/ruby/lib/ruby/gems/1.8/gems/ZenTest-3.3.0/lib/autotest.rb:285:in `expand_path'': couldn''t find HOME environment -- expanding `~/.autotest'' (ArgumentError) ---
2005 Apr 01
11
I want to blog!
This isn''t Rails or Ruby related, but I just need some advice and thought I''d ask the bright individuals here. I want to start my own blog but I''m not sure where to begin. I don''t want to get a blogger account because I want to have my own domain. Blogger also doesn''t have many features. My hosting service is 1AND1 so it supports php, cgi and mysql.
2006 Aug 06
1
Deploying from local machine to remote host using capistrano?
Hi, I would like to deploy a RoR application from my local machine to a remote host. Looks like the capistrano assumes that you are using an internet accessible host for the SVN repository and doesn''t checkout files using file:///! Did I miss some configuration? How do other people handle their application deployment from your local machine? Thanks for your feedback. Regards, Hari
2006 Aug 11
1
routing question
Hi, How do I configure my routing file to handle the following condition: www.my-domain.com --> "Web site under construction" page www.my-domain.com/beta/ --> The actual beta application In the normal case when I access "www.my-domain.com/beta/" the application works fine but the redirects go the root and fails. How can I make sure the "redirects" goes to
2006 Aug 17
1
sysread error in "net" library?
Hi, I am reading RSS feeds and quite often I get the following error in the "net" library. Anybody had such error before? Any info would be very useful? Thanks, Hari ----- /usr/lib/ruby/1.8/net/protocol.rb:133:in `sysread'': end of file reached (EOFError) from /usr/lib/ruby/1.8/net/protocol.rb:133:in `rbuf_fill'' from /usr/lib/ruby/1.8/timeout.rb:56:in
2006 Jun 08
1
formatting amount
Hi, What is the best way to format amount in RoR? e.g $12000.937 => $12,000.94 Thanks, Hari -- Posted via http://www.ruby-forum.com/.
2006 Jun 22
2
Embed a Rails app within another?
I''m looking for a solution where I could load and render pages from one Rails application within another. I''m looking through the Rails code right now to see if this would even be remotely possible. Does anyone have any ideas? I know the obvious answer would be to proxy the app via Net::HTTP, but this is undesirable because: - I don''t always want to depend on having
2005 Mar 05
9
Best practice to manage ''id'' hacking?
In my app, a user logs in [via the login generator] and has access to details of his account, and transactions attached to his account. This is achieved in the standard rail manner by passing the account id or transaction id between the controller and the view. But what is to stop someone hacking the URL or view html to access another account id or transaction id ? eg /account/show/46 becomes
2006 Jul 03
1
ben
Hi, Im attempting to use the sparklines graph plugin, and am reciving the message below. no such file to load -- RMagick Has anyone got any one suggestions on how to go about installing rmagick using rails or any tutorials? Thanks -- Posted via http://www.ruby-forum.com/.