Displaying 20 results from an estimated 20000 matches similar to: "switching environments"
2006 Jan 13
3
related drop down list / ajax
Hi all,
I''m trying to create a related dropdown box:
In my view:
<select name="category" id="category">
<option value="">Select category</option>
<% @categories.each do |category| %>
<option value="<%= category.id %>">
<%= category.title %>
</option>
<% end %>
2006 Feb 01
5
lighttpd not starting on os X (intel)
Hi all,
I''m followed the instructions written here to prepare my new iMac for
Ruby / Rails developement:
http://hivelogic.com/articles/2005/12/01/ruby_rails_lighttpd_mysql_tiger
When I run script/server I get the following output:
harm-de-laats-computer:~/rails/test harmdelaat$ script/server
=> Booting lighttpd (use ''script/server webrick'' to force WEBrick)
=>
2006 Aug 13
3
escape block using red cloth
Hi all,
Is it possible to configure red cloth to escape a block such as:
------------------------------------------------------------------
Hello, _this_ works *beautifull*
[code lang="ruby"]
def foo
bar
end
[/code]
------------------------------------------------------------------
The text in the [code] block should not be parsed by Red Cloth''s to_html
method.
I cannot
2006 Jan 03
1
validating model without saving
Hi all,
I would like to validate my model without actually saving it to the
database.
Actualy I need it as follows:
User enters user details in a post form.
When the user submits the form I would like the form to be validated.
However, when validation passes, I don''t want to save the model yet, but I
would like to store it in Session context.
Is this possible at all? And if so, how
2006 Jul 01
22
TextDrive complaints
Hi all,
I have deployed my Ruby On Rails application on TextDrive.
At first everything seamed to be fine. However, lately, response time of my
application is incredible slow.
Worse, lately there is also a lot of downtime.
I have contacted their support desk, however, they do not respond (at all,
or very, very late).
Has anyone else these experiences with TextDrive?
And if so, what did you do
2005 Dec 25
2
[repost] newbie questions
Hi all,
I''m following the shop example in ''Agile Web Development with Rails''.
I would like to extend the checkout screen, in such a way people can change
the number of items they have selected in there cart.
In my controller I have:
def checkout
@cart = find_cart
@items = @cart.items
if @items.empty?
2006 Jan 02
2
charting (freechart)
Hi all,
We are a Java development team, but we are considering rails for our next
project.
However in this webapplication I need to do a fair amount of charting.
In Java we used JFreechart (http://www.jfree.org/jfreechart/index.php) for
this purpose.
What are my options for charting in Ruby?
Regards,
Harm de Laat
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 Mar 10
8
XML Databinding frameworks
Are there any XML databinding frameworks available for Ruby / Rails, such as
Castor or JaXB for Java?
Also are there framework such as Apache Axis for WebServices for Rails or
Ruby?
Regards,
Harm de Laat
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060310/3cf0cfd3/attachment.html
2006 Apr 17
1
Effect.appear
Hi all,
Is there a way to use the onLoad event of a page to start the
Effect.appeareffect?
I''m trying like this, unfortunatly this does not work:
<html>
<head>
<%= javascript_include_tag :defaults %>
</head>
<body onload="new Effect.Appear(this);">
My Body
</body>
</html>
Any idea how to get this to work?
Kind regards,
Harm de
2006 Feb 03
5
writing my own generator
Hi all,
I wanted to write my own generator. What would be a good starting point.
Is there any documentation on this, Best practices, etc?
Regards,
Harm de Laat
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060203/c64c4730/attachment.html
2005 Dec 15
3
session scope?
Hi all,
I''m working on a Rails application. In this application I retrieve a list of
''brands'' using a method somewhere defined in my controller:
private
def get_brands
@brands = Product.find_by_sql("select distinct brand from products");
end
However, I display this information in a listbox in the template for my
controller.
This means @brands
2006 Jan 09
11
Fast Ruby Debugger?
After developing in Java for years in IDEs I''m starving for a decent ruby
debugger. When learning new codebasesI find it invaluable to use the
debugger to step through the system and see how things work at runtime.
Using RDT in Eclipse is fine but it''s excruciating to wait minutes for the
default debugger to finally reach my breakpoints on tests that normally take
seconds to
2006 Jul 22
16
capistrano deploy failing on /public/system "No such file or directory"
trying like mad to get this to work.
cap setup works fine, sets up the dir structure on dreamhost (tho setup
doesnt create the "current" symlink).
on deploy, i get:
* executing "rm -rf
/home/USERNAME/dwightnight.org/releases/20060722060159/log
/home/USERNAME/dwightnight.org/releases/20060722060159/public/system &&\n
ln -nfs /home/USERNAME/dwightnight.org/shared/log
2006 Jan 10
1
[AJAX] related drop-down list question
Hi all,
I followed the example on: http://www.roryhansen.ca/?p=9 for creating
related drop-down lists.
However, this code actually creates HTML in the controller component:
@albums = Album.find_all_by_artist_id(@params["artist_id"])
@html = "<select id=''album_id'' name=''album_id''>"
@html += "<option
2006 Mar 08
12
favorite FTP client of railers
Hi,
Which FTP client would fit in nicely with OS X and Textmate.
Thanks,
Peter
2005 Dec 16
4
Parent Child together in input form
Hi all,
I understand how rails is supposed to work when dealing with one entity
input form.
However, when I have a relation between two objects (composition):
Customer(1) --------> (1)Address
How can you create a inputform where both the properties of a Customer and
Address can be filled in?
Regards,
Harm de Laat
_______________________________________________
Rails mailing list
2006 Jan 25
7
Ruby on Rails Presentation Wed (1/24) night in Menlo Park, CA
I''ll be giving a 60 to 90 minute presentation covering Ruby on Rails in the San
Francisco bay area. Anyone interested in a quick introduction to Rails is
welcome to come. The talk will be focused on Rails, but we''ll also field
questions about how the rest of our site (Zvents) works. Here are the event
details:
http://www.zvents.com/events/show/211380
If you''re
2006 Jan 21
19
RoR - Mac OS 10.4.4 on Intel
I got a new 20 inch iMac dual core today and am busy getting it all
setup. A couple of issues though:
1. Is the Ruby 1.8.2 install by Apple still botched or has that been
fixed? I recall someone had fixed the rbconfig.rb to get it working.
Is this something I still have to do?
2. Does anyone know if Locomotive is using the uniersal binaries, or is
it targetting PPC yet? I couldn''t
2006 Feb 17
27
deployment server
Hi all,
On theserverside.com there is an article describing an interview with Bruce
Tate, where he calls Java dead like Cobol.
See: http://www.theserverside.com/news/thread.tss?thread_id=39066
However in the comments, some guy comes up with a good point:
He states the following:
<quote>
I couldn''t come up with a viable enterprise quality/grade deployment
platform for RoR. Even
2006 Jul 10
0
creating / manipulating ms-word files
Hi all,
Is there a way to create and/or edit MS Word files from ruby / rails?
If not, maybe RTF is an option?
Thanks, Regards,
Harm de Laat
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060710/cb44da6a/attachment.html