Displaying 20 results from an estimated 5000 matches similar to: "Uploading files > 10mb using InstantRails 1.0 configuration."
2006 May 05
1
InstantRails, ruby downgrade to 1.8.2 issue.
Hello,
I''ve been using InstantRails 1.0 that has ruby 1.8.4 and rails 1.0. Some of
you might know that the RMagick package does not work with ruby 1.8.4. I''m
now trying to downgrade to ruby 1.8.2 within my InstantRails 1.0 install.
Is there a clean way of doing this? I basically downloaded ruby 1.8.2 and
replaced the ruby directory with the newly created ruby directory. As
2006 May 23
4
''key not found'' problem with saving model object.
Hello,
I have the following structure:
model foo
has_many :bars:,
:dependent => true
end
model bar
belongs_to :foo
end
In my action, when i try to save foo:
def save
begin
f = foo.new
f.a = 5
begin
b = bar.new
b.a = 10
f.bars << b
rescue Exception => exc
...
end
f.save! <-- This does not happen
2006 May 16
4
question about strftime when called from partial.
Hi,
I''m calling a helper I''ve written - format_time() that is called from my
views with a given time that was selected from my database and was returned
to the view via an instance variable. When I call format_time from a
partial, I see that I get some kind of String error and the partial won''t
render. Basically, the object being passed in to format_time is already a
2006 May 10
2
accessing uploaded file on filesystem question.
Hi,
I''m able to upload files onto my webserver filesystem but I had a question
regarding how I''d go about accessing them using the <img src="..." > tag.
If my files, i.e pictures, are being uploaded to
public/images/<dir>/filename.jpg, then should I store the entire path, or
just the picture name in my database table? I would imagine storing just
the
2006 May 30
3
expected, got Fixnum problem.
Hi,
I was wondering if anybody knew what ''<some type> expected, got Fixnum''
means? My code looks like the following:
begin
anevent = Event.new
anevent.title = params["event"]["title"]
anevent = session[:user_id]
com = Community.find(params[:id])
com.events << anevent
rescue Exception => exc
...
end
But I get an
2006 May 10
2
getting absolute paths on files on filesystem.
Hi,
I''d like to be able to store the absolute path for a file so that I could
use <img src = "...." > and give it the path to the file I''d like to
display. I was wondering if there is an easy way to do this and whether
there are any issues with this on Windows.
thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 Jun 06
4
Checking if a directory is empty using File
Hi,
I have one minor issue. I''m trying to check whether a directory is empty
given some path to the directory.
My code does the following:
if(File.directory?(dirpath)) # dirpath = public/images/1
if(File.zero?(dirpath))
FileUtils.rm_rf(dirpath)
end
end
The problem is, while testing this, if I put a file in the directory and run
the above code, it still ends up deleting the
2008 Apr 19
1
Problem with Active Web Service on InstantRails
Hi,
I''m trying to install and use activewebservice on Rails 2.0.2(using
instantrails)
the gem install activewebservice finished succesfully.
walked through the steps listed at:
http://www.texperts.com/2007/12/21/using-action-web-service-with-rails-20/
when I try to start mongrel I get the following trace
** Starting Mongrel listening at 0.0.0.0:3000
** Starting Rails with development
2006 Mar 13
2
Engines with InstantRails
I''ve recently started playing with InstantRails 1.0 and am now wanting
to experiment with the Login and active RBAC engines but having trouble
getting them to install.
I''ve checked the following but can''t find any info on how to get it to
work.
http://rails-engines.org/wiki/pages/Engines+plugin
I''ve also tried the following:
2007 Feb 14
0
Instantrails and tiddlywiki
Hi all,
I''m trying to setup instantrails to serve a tiddlywiki web page. This
web page has the ability to upload the edited file back to the server
and overwrite the original. This requires a ruby .cgi script to be run
and this is where the problem lies. I cannot get the ruby script to run
although the page is served fine. I was using easyphp before and this
was working fine but
2006 Mar 12
2
InstantRails works with WEBrick, fails with SCGI
I have an app that I''ve been developing for some time with RADRails and
WEBrick locally. I wanted to take it to Apache and following the
following steps:
1) Downloaded and extracted InstantRails.
2) Started and tested cookbook with SCGI. Works great.
3) Copied my app over to rails_apps directory.
4) Added a virtual host to Apache identical to cookbook (just using port
9999
with
2006 Aug 08
2
Should I uninstall everything to install InstantRails?
Please help me I am brand new to this.
I have been following this tutorial from OnLamp
http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html
which tells you how to install ruby, rails and mySQL and get going.
Doing this tutorial convinced me RoR was the way to go for me.
So I got hold of this e-book:
Agile Web Development with Rails - The Pragmatic Programmers
The book tells me to install
2006 Jul 28
2
passing a variable from controller to model
Hi,
How do I pass a variable from my action into a model before saving the
model. I''d like the model instance to have access to this variable to
do some work before saving the model instance but the variable is not
part of the model itself.
Thanks,
Sam
--
Posted via http://www.ruby-forum.com/.
2006 Jun 12
1
incorporating Perl in Ruby on Rails.
Hi,
I have to use some API''s from some outside vendor to incorporate some of
their video functionality, in particular, I have to somehow incorporate
VideoEgg''s video publishing api''s. They don''t currently support Ruby, but
I''ve heard that there are ways to hack up ruby code with their Perl API''s to
get it working. Would anybody have any idea
2006 May 07
1
file_column problem - uninitialized constant Magick
Hi,
I''m on Windows and getting the following error while trying to use
file_column with RMagick,
uninitialized constant Magick
C:/INSTAN~1.0/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:123:in
`const_missing''
#{RAILS_ROOT}/vendor/plugins/file_column/branches/kyle/lib/file_column.rb:621:in
`file_column''
I installed file_column by
2006 May 07
1
design question - multiple form resubmit problem.
Hello,
My question has to do with a form resubmit problem. Say for example a form
is submitted and within that form, a picture is uploaded. If the user
presses the Back buttom and gets back to the form submission sheet, and then
clicks on resubmit, once again, the same data is populated into my tables
wasting space (another picture upload for no reason in a separate row).
Now, I know there are
2006 May 22
3
rails naming convention for model: community
Hello,
How does Rails deal with the pluralization of community. I have "community"
as my model name. Will Rails automatically look for a table name
"communities" or do I have to name the table "communitys"?
Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 May 15
2
Error creating controllers in InstantRails-1.3a
Hi,
I was able to successfully Install InstantRails-1.3a and run cookbook throgh
Apache and WEBrick , however when I try to create my own app. cookbook2
following tutorial ( http://instantrails.rubyforge.org/tutorial/index.html)
, it gives me below error whle creating MyTest controller
Cannot find gem for Rails =1.1.2:
Install the missing gem with ''gem install -v=1.1.2
2007 Jan 16
3
Instantrails.exe process wont shutdown.
Hi Guys,
Im really hoping someone can help...
I have installed Instantrails onto about 50 Tablet PC''s - some HP
TC4200''s and some HP TC1100''s.
Installation etc isn''t a problem, but i have noticed that when i
shutdown Instantrails, it closes, but looking at the task manager it is
still listed as a process running in the background- utilizing @ 3MB of
memory or
2006 Jul 24
2
RadRails plus InstantRails
RadRails requires Ruby and Rails to be installed first.
Will it work ok with InstantRails providing the Ruby + Rails part?
Or do people recommend avoiding InstantRails when installing RadRails?
lex