Displaying 20 results from an estimated 6000 matches similar to: "preserving params across redirects"
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 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 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 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 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
--
2010 Feb 25
1
taking the median across similar data
Dear All,
I am analyzing the miRNA data set in which I have 817 unique probes for each
they have 20 features each . I have to group the similar features and take
the median across them so that I have a data with no repeats to perform
invariant analysis .
My data looks something similar format
probename sample1 sample2 sample3
A 2.3 2.4 2.5
A
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 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 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 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 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 Apr 06
4
function onComplete how to overload?
Hi all. I my apps I need to use Ajax.Request Object. One of the object options is onComplete fuction which looks like this:
funcion onComplete (originalResponse)
{
..some operations
}
I need pass to function one more parameter, how to do it? is is possible? I can''t use AJAX Updater because result of Ajax Call is uploaded to the div that I defined earlier, and in my situations I
2010 Sep 21
2
multiplying values in data frame by corresponding value in the first column
I am sure there is a simple solution to this... I have a column in a
data frame specifying a grouping (1, -1) for my observations, and need
to mutliply each observation in all the other columns of the data frame
by the corresponding value in the given column. I played with apply, and
saw some suggestions for sweep, but did not manage to get it working.
My table contains NAs....
Example of
2008 Mar 10
5
Passing extra parameters to functions called from Observers
Hi again,
When you have an ''obeserver'' setup as follows:
$(''myForm'').observe(''submit'', validateForm);
If a user submits the form the ''validateForm'' function is called and
is automagically passed the ''event'' to work with. This is fantastic!
But is there a way to pass another argument to the function?
2010 Aug 30
2
while loop until end of file
Hi Guys,
stumped by a simple problem. I would like to take a file of the form
Pair group param1
1 D 10
1 D 10
1 R 10
1 D 10
2 D 10
2 D 10
2 D 10
2 R 10
2 R 10
etc..
and for each pair, calculate the average of
2006 Sep 15
3
How to catch a parameter that contains a full url
Hi
I need some help!
I have controller that I need to pass a full url (with its own
parametrs) as a parameter, e.g. I want to call my controller with:
/mycontroller/catchurl?url=http://somedomain.com/afile.jsp?param1=xx¶m2=yy
and in action "catchurl" in mycontroller.rb I would like to have
params[:url] to be
"http://somedomain.com/afile.jsp?param1=xx¶m2=yy"
2012 Jul 31
3
Access @resouce in custom type
Is it possible to access @resource variables inside a type?
I would like to make some decisions on parameters based on other parameters
that may have already been set.
For example,
---
newparam(:param1) do
Puppet.debug "Found drivesperarray parameter"
desc "parameter 1"
validate do |value|
if resource[:otherparam] then
#dosomething
else