Displaying 20 results from an estimated 3000 matches similar to: "Changeset 5358 - Jamis"
2006 Jan 12
6
link_to_image - Remove Border
Hi All,
I am new to both Ruby and Rails, so please be patient with me. I am
currently working on a view for a controller and I have used the
following excerpt:
<td><%= link_to_image "b_edit", :action => ''edit'', :id => part_prefix
%></td>
The image is being displayed and the link is working. However, the
formatting of image rendered
2007 Apr 09
6
gruff send_data
Hi,
for those with experience of Gruff module: suppose I want to send
image from server straight to the browser (as example on gruff web
site):
send_data(g.to_blob,
:disposition => ''inline'',
:type => ''image/png'',
:filename => "gruff.png")
the server seems sending this binary data ok, but I am having
2006 May 26
4
Jamis, problem w/Capistrano
Jamis,
I''ve spent hours trying to get Capistrano working, to no avail. I''m
hosting over at www.railsplayground.com, and here''s their instructions
I''ve been following:
http://tinyurl.com/hyo93
I can''t get past step 7. When I execute "rake remote:setup", I get a
rake aborted! message. When I do a "rake --tasks", I get only a
2007 Aug 17
1
Testing webservices in Integration Tests with Jamis Buck's recipe?
Hello,
I''m using Jamis Buck''s recipe to do integration tests on an
application, but I got a nil.recycle! error while doing a webservice
call.
This is the situation.
def test_uploading_data
invoke :upload, data
invoke :upload, even_more_data
real_user_session = new_session_as @real_user
real_user_session.press_magic_button_to_enable_more_uploads
invoke :upload,
2008 Jun 23
2
NewB questions
Hi,
A project came up that has made me realize that it''s time to learn RoR.
I''ve got everything up and running (Ruby 1.8.6, Rails 2.1, MySQL 5,
Webrick) and am using Aptana with RadRails for development. I''ve
installed the "recipes" demo application and have been poking around for
the past couple of hours, and now I have a few questions about how
things work:
2006 Oct 02
22
Multi Byte Strings
Hey guys,
We''ve been talking about the multi-byte patch and I think it''s time to
get feedback from you guys on a possible way forward.
We can include ActiveSupport::Multibyte with rails 1.2, and update all
of the relevant helpers to use the String#chars proxy. This will mean
that none of the action view helpers will mangle multibyte strings.
Similarly, if any Strings are being
2011 Jul 31
5
Appending 4 Digits On A File Name
Greetings all,
I would like to append a 4 digit number suffix to the names of my
files for later use. What I am using now only produces 1 or 2 or 3 or
4 digits.
############
for (i in 1:1000) {
temp <- (kegg [i,])
temp <- merge (temp, subrichcdt, by="gene")
file.name <- paste ("kegg.subrichcdt.", i, ".txt", sep="")
2006 Apr 10
5
I have a Capistrano 1.1 patch - where does it go?
I have a patch for Capistrano 1.1 - how do I submit it?
Wes
--
Posted via http://www.ruby-forum.com/.
2006 Mar 01
4
SwitchTower deployment has errors with different :db server
When I define :db to be a different server than either :web or :app, and run
"rake deploy". Switchtower will abort with an Net::SSH::AuthenticationFailed
error. The version of Switchtower I''m using is 1.0.0 and the deploy task is
the default supplied with Switchtowe.
However, I dont have any problem when :db is changed to the same as :web and
:app.
-------------- next part
2006 Apr 08
6
Deploy with Capistrano Win32 -> Linux
Im trying to deploy with capistrano from win32 to Linux but no success.
I''ve been installed: cwRsync to ssh
I ran
rake remote:exec ACTION=setup --trace
and get:
Anyone knows how to get capistrano log ssh comunication?
Any idea?
Thanks
rake aborted!
End of file reached
c:/ruby/lib/ruby/gems/1.8/gems/net-ssh-1.0.8/lib/net/ssh/transport/version-negot
iator.rb:51:in `readline''
2005 Nov 05
4
Changing plugins_path in Rails::Configuration
I have two apps sharing a common model and lib. I''d like to share my
plugins as well, however I noticed that the plugins_path in the
Rails::Configuration (0.14.2) is not accessible as is view_path or
log_path. What would be the best way to go about accomplishing this?
Thanks.
--Ryan
2006 Feb 07
6
Switchtower not working due to openssl not found
I''m struggling to get switchtower working, and from other posts about
it I know it has something to do with ruby binding to open ssl. I''m
just not sure what I should recompile/reinstall to get things to work.
running: "rake remote_exec ACTION=setup" gives me --->
...executing "mkdir -p -m 775 /usr/apps/hello-rails/releases
/usr/apps/hello-rails/shared/system
2006 Feb 21
9
SwitchTower 1.0.1, SwitchTower Extensions
SwitchTower is a utility that can execute commands in parallel on
multiple servers. It allows you to define tasks, which can include
commands that are executed on the servers. You can also define roles
for your servers, and then specify that certain tasks apply only to
certain roles.
Manual: http://manuals.rubyonrails.org/read/book/17
Project:
2006 Feb 01
18
Switchtower Error
This is my deploy file
set :application, "varcasa stage"
set :repository, "file:///c:/svnrepo/thenali/trunk"
#
=============================================================================
# ROLES
#
=============================================================================
# You can define any number of roles, each of which contains any number of
# machines. Roles might
2006 Mar 06
46
Capistrano 1.1
Capistrano is a utility for executing tasks in parallel across
multiple remote hosts. It was formerly known as SwitchTower.
Installation:
gem install capistrano
Manual:
http://manuals.rubyonrails.org/read/book/17
Version 1.1 introduces a few changes:
* Renamed! Due to the trademark infringement debacle of last week, we
had to change the name. Moving forward it will be known as
2005 May 13
5
HTML sanitizer
Hello!
Does anybody know of a Ruby implementation of a HTML sanitizer that
prevents the attacks described on the xss cheatsheet?
(http://ha.ckers.org/xss.html)
I checked out the version Jamis wrote
(http://dev.rubyonrails.com/ticket/1277), but that only covers the
very basic attacks.
Anybody? Just figured I would ask before, before I reinvent the wheel..
Ciao!
Florian
2005 Dec 22
3
How to specify SwitchTower SSH port
Hi !
Following Ezra's suggestions on http://brainspl.at/pages/perfect_vps,
I changed the port sshd listens to.
I'm trying to setup SwitchTower, and I don't know how to set the port.
Where should that be configured ? I can't see anything in
switchtower.rake, nor can I see it in the source.
If this already exists, can anybody point me to documentation. If
not, can I get any
2006 Feb 19
10
Switchtower - unitialized constant
Just loaded up Switchtower 1.0 today, via gems. I''m on OS X (10.4.5),
with ruby and friends installed via darwinports in opt/local.
After installing ST, I switchtowerized my app, set up the deploy recipe,
then ran:
rake remote_exec ACTION=setup
When I do, i get this error:
rake aborted!
uninitialized constant SwitchTower
Obviously, this happens with any of the tasks in ST (like
2005 Dec 16
6
Switchtower for production?
Hello,
The company that I work for will be developing a large webbased survey
(for a government institution) somewhere in Q1/Q2 of 2006. I''m
investigating the technological possibilities and Rails is certainly a
candidate. The survey application will have to perform under very high
peak load, and the exact specifications of the hardware are not known
at this point. I''m assuming
2006 Jan 19
12
Switchtower isn''t restarting lighttpd
I''ve got switchtower set up, and it seems to work fine except for one
problem: It doesn''t successfully restart lighttpd. I have the
following task in my deploy.rb file:
desc "Restart the web server"
task :restart, :roles => :app do
sudo "/usr/local/etc/rc.d/lighttpd.sh restart"
end
This is on a FreeBSD system, so it''s using the rc script to