Displaying 20 results from an estimated 1000 matches similar to: "redirect as post?"
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 21
4
Simplest way to demonstrate a RoR app
Hi,
I have built a simple RoR application and would like to show it to some
friends.
I would like to assign a dyndns URI like "myapp.dyndns.org" address to
point to the application.
As the WEBrick/Mongrel servers are running in "localhost (so loopback
connections)" and I couldn''t bind them to the external server name or
couldn''t bind them to my IP
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 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 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 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
--
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)
---
2006 Jun 30
4
always show 2 decimal places
Hi,
I have a float that often looks like somthing like 2003.2 in my
controller (1 decimal place)
Is there a way to always show it to 2 decimal places eg 2003.20 ?
Thanks
Scott
--
Posted via http://www.ruby-forum.com/.
2006 Jun 20
4
Prototype $A not defined
Hello,
I apologize for posting prototype related email to this list, yet I
have not seen any reference to email or list on the prototype web site
and I know the author of that library is part of the rails development
team so I am trying to reach him.
Basically I have installed "FireBug" which is a
javascript/html/css/dom debugger for firefox and since I plugged
prototype.js and
2006 Jun 21
5
module and cache/restarting server
Hello,
It seems I need to restart webrick everytime I modify a module in order
for my modifications to be taken into account. Is this normal and is
there a workaround?
Regards,
--
----------------------------------------------------------------------
Yannick Majoros http://www.inma.ucl.ac.be/~majoros
Informaticien UCL/INMA-MEMA
4, avenue G. Lema?tre
B-1348 Louvain-la-Neuve
Tel:
2006 Jul 05
19
associations question
Hello,
I have a People table and a Addresses table. A person can have one or
more addresses, but should at least have one, so there is a address_id
field in People.
Now, I would like to have a form to fill the name of a new person and
its address from the same place. I could use person.address.country, for
example (it works), but I would like to simply use person.country for
some reasons
2002 May 24
1
add user script w/ idealx perl script (ldap)
Dear samba guru,
I have a little bug i can't solve. It is pretty misterious to me,
must be a problem how samba execute the add user script. Now here
is the situation. I've compiled samba 2.2.4 with ldap 2.0.23 to run
as PDC with win2k workstations. Everything works as expected except
the add user script to add workstation automaticly to the domain.
add user script =
2006 Jul 12
12
pass hash as parameter
Hello,
How can I pass a hash as parameter from a template with url_for?
e.g. : if I have
test = { :a => "a", :b => "b" }
How can I pass that with my request? Is it possible to pass nested
hash''es to?
Right now,
url_for :action => :test, test
doesn''t seem to work.
Thank you,
--
2006 Jun 21
12
Question{maybe silly] Sanity check
This maybe a silly question and the fact that I need a sanity check
might even be weirder, but I''m trying to set realistic expectations
for myself.
I''ve been reading reading reading AWDWR, Ruby on Rails, some of the
PickAxe, and even done a few recipes from Rails Recipes. This is all
of two weeks. I feel that I''ve learned a considerable amount but
going through the
2003 Jan 09
2
(no subject)
I just ran across this myself. I guess I dont understand why there
needs to be machine names in /etc/passwd if you are storing everything
in LDAP. Am I missing a configuration option here? Can one of you
samba geniuses point me in the right direction please?
Thank you!
>I have exactly the same bug. Your original email was dated 24 May 2002
>so I can safely assume that either you
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