Hi,
I've been trying to get JRuby 1.5.3 with Rails 3 to run on the Tomcat6
server with little success.
Has anyone been able to do this? If so, what issues did you have to
overcome to get this to work?
Also, is this a combination that you would recommend for a production
site, or is it all too new
Thanks for the reply, after trying your suggestion I still get the
same "invalid date " error. I can only migrate if I comment the
add_index part.
On Oct 29, 5:19 am, Greg Ma wrote:
> tonyaraujo wrote in post #957977:
>
> > add_index("pages", "subject_id")
> > add-index("pages", "permalin
On Oct 29, 7:06 pm, Cameron Vessey wrote:
> when I've looked up ruby and selects in most all are in a form_for.
> I don't know why I would need a form_for in this case.
>
> Form_for refers to a model. But I have no model I need to refer to I
> simpley want these options to be shown, which I can
Stefan Hinck wrote in post #958118:
> Hello all
>
> Newb alert...
>
> I am trying to install Rails and also update ruby.
>
> I am running OSX and found that my Ruby version is 1.8.7
>
>
> P.S. I was just going to use TextMate as my editor, though maybe I
> should be using this xCode?
xCode is the
Thanks for the help Walter, I tried what you said, putting them in a
different order, still doesn't quite work, although some progress, got a
different error message now!:
uninitialized constant AWS::S3::NoSuchBucket
I've set up my s3.yml file now to have the 3 buckets production,
development
Just upgraded to Rails 3 from 2.x. I've got a download method which
returns a file for download via XSendfile. In Rails 2.x a HEAD
request of the download resulted in a response which included
Content-Length, ETag and Last-Modified headers, but in Rails 3 I'm not
longer getting these. Reading th
Thanks
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to
rubyonrails-talk+uns
http://rails.rubyonrails.org/classes/ActionController/Base.html#M000468
Take a look at the third example there.
Walter
On Oct 29, 2010, at 4:56 PM, Fritz Trapper wrote:
From within the Rails environment.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you
Hello all
Newb alert...
I am trying to install Rails and also update ruby.
I am running OSX and found that my Ruby version is 1.8.7
Where I am confused is that on the Rails site it mentions that Ruby
comes with "Developer Tools" for Mac users...
So I looked on the Apple site and read up a bit o
Should you test validation error messages when specing your models?
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to
rub
>From within the Rails environment.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send e
Glen's solution works perfect !
Thank you very much, your tip is a must have of every rails project,
IMHO :)
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to
On Oct 29, 4:16 pm, Marnen Laibow-Koser wrote:
> Andrius Bentkus wrote in post #957976:
>
> > Hello,
> > I am currently mapping ActiveRecord to an existent database system and
> > there is one oddity in it: the primary key starts with 1 and not with
> > 0 and it is not even marked as auto increm
On Oct 29, 2010, at 2:03 PM, David Kahn wrote:
Why is Rails looking for a template while I have told it to render a
specific file? This worked under Rails 2. I read http://www.engineyard.com/blog/2010/render-options-in-rails-3/
which from I gather makes any format.xxx look for a template xxx
Did you want to do this within the Rails environment, or at the Apache
(or other Web server) level?
Walter
On Oct 29, 2010, at 4:12 PM, Fritz Trapper wrote:
Is it possible to redirect from a rails app to media wiki? How to do
it?
--
Posted via http://www.ruby-forum.com/.
--
You received
Is it possible to redirect from a rails app to media wiki? How to do it?
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
T
Funny little quirk I just encountered, and I wanted to post it where
you might find it one day. If you're using the Proto/Scripty sortable
helper in Rails, and you want to sort a table, you need to put the
HTML ID that you use to identify your list collection on the tbody
tag, not the table
I am trying to do the same thing and having the same problems. Please
let me know if you find a solution.
Thanks,
Jeff
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, se
On 29 October 2010 19:03, David Kahn wrote:
> Why is Rails looking for a template while I have told it to render a
> specific file? This worked under Rails 2. I read
> http://www.engineyard.com/blog/2010/render-options-in-rails-3/ which from I
> gather makes any format.xxx look for a template xxx
I am coming here to post this after already having had a brief
discussion at railsforum.com, here:
http://railsforum.com/viewtopic.php?pid=132629
... they weren't able to help me. I also tried googling, etc, and
nobody could help me. I am hoping someone here can.
Short version: We've got a rails
Hi,
Again I can't get my head around a simple RoR drop down.
for my first drop down all a need is a simple number list which I have
in the "ascential" controller
def index
@size = [12,13,14,15,16,16.5,17,18,19,212,13,0,21,22,23,24]
end
( I have a tire model and I want to be able to display al
Why is Rails looking for a template while I have told it to render a
specific file? This worked under Rails 2. I read
http://www.engineyard.com/blog/2010/render-options-in-rails-3/ which from I
gather makes any format.xxx look for a template xxx which is *not* what I
need to do as the file is creat
I am trying to run rake on an app I have made. This is what happens
n...@neil-laptop:~/$ rake test:units --trace
(in /home/neil/)
** Invoke test:units (first_time)
** Invoke db:test:prepare (first_time)
** Invoke db:abort_if_pending_migrations (first_time)
** Invoke environ
$ ruby -v
$ ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-darwin10]
$ rake db:create
$ rake db:migrate
$ rake db:seed
$ bundle install
Using rake (0.8.7)
Using abstract (1.0.0)
Using activesupport (3.0.0)
Using builder (2.1.2)
Using i18n (0.4.2)
Using activemodel (3.0.0)
Using erubis (2.6.6)
Us
Hello fellow Rails programmers,
I really love the new way of AJAX requests in Rails3. It really cleans
up my HTML code and it makes using AJAX in your application a lot
easier. I only have one - kinda big - problem with it. When the page
is still loading and the user clicks an AJAX link, the AJAX
I am currently writing an app and would like to stream videos through
a jwplayer or flowplayer. The video files are stored in a folder out
of public. So as first option I guess send_data should work, but I
don't know how to put together send_data and the player.
Or if there is any other option to
On Oct 29, 2010, at 9:18 AM, Michael Baldock wrote:
As I said before, I keep getting the error message: undefined method
`stringify_keys' for #
This goes away when I remove the line :storage => :s3 from the
model.
You might need to load s3 earlier than in the model you're using it
in.
Hi all,,
Consider the application using authlogic plugin for simple signup and login
*signup process:*
i have registered one user using some email like "x...@gmail.com" in my
application.
*Login process*
And in login page ,, ...if i am using the same email id "x...@gmail.com" to
login thro f
If anyone is interested in a great startup opportunity in Paris France
and wants to join a talented international team, please contact
me.
Some interesting numbers:
Launched in Feb 2010
5M uniques / month and growing too fast, hence the need for people who
like challenges
10M USD Investment from
Andrius Bentkus wrote in post #957976:
> Hello,
> I am currently mapping ActiveRecord to an existent database system and
> there is one oddity in it: the primary key starts with 1 and not with
> 0 and it is not even marked as auto increment.
> I can't change the table or the column names since it w
Christian Fazzini wrote in post #957990:
> How can one do something similar to:
>
> redirect_to(:back, :notice => "Photo was successfully created. Click
> here
> to view it")
>
> The flash notice message is shown however, it shows: "Photo was
> successfully created. Click here to
> view it". It dis
James Byrne wrote in post #957930:
> Marnen Laibow-Koser wrote in post #957913:
>
>> To me too -- if we're talking *files*. But again: that should never
>> happen. Let's see your views and controllers. I suspect you are trying
>> to cram too much into a single controller, and ending up with lots
Vadim Comanescu wrote in post #957914:
[...]
> The main reason for which im trying to build this is for the
> configuration of the native zfs filesystem on solaris - building
> diskpools, handling iscsi sharing, integration with VMware and other
> solutions for virtualization. And that is not prese
Hi all, I've got a feeling from other posts that this should be very
simple, but believe me I've looked around many tutorials / blogs, but
still cant even get the most basic setup working with paperclip and s3.
I am however pretty new to Rails, so could be doing something dumb.
---
Firstly, t
Ok, I found solution it is :name_prefix
But I now have errors like
edit_somename_arch_note_url failed to generate from
{:controller=>"sysadmin/notes", :action=>"edit",
:id=>#}, expected:
{:controller=>"/sysadmin/notes", :action=>"edit"}, diff:
{:controller=>"/sysadmin/notes", :id=>#}
--
Post
Hi, i am trying to call my Rails app using Java code using Jersey
I m having 2 tables .
Blogposts (id,name,slug,desc) Comments (id,data,node_id,node_type)
I m trying to post a comment through my ruby code.
The Url for me is like
http://localhost:3000/api/blogs/comment.xml?slug=blogtitle-0&comme
Help me please, very urgent.
I have resources that lay in plugin, they have structure like
Somename::Arch::Notes
Also I have controllers for this model in different controller, that lay
in
sysadmin/notes
When the form is building with form_for it tries to generate path with
method
somename_arch_
Hi,
I'm under Windows XP Pro on wamp server 1.7.4
I'm use Aptana on rails 2.3.2 and ruby 1.8.7.
I try to install plugin in_place_editing but i have always the same
message under DOS :
if i try with
ruby script/plugin install http://svn.rubyonrails.org/ra
ils/plugins/in_place_editin
How can one do something similar to:
redirect_to(:back, :notice => "Photo was successfully created. Click
here
to view it")
The flash notice message is shown however, it shows: "Photo was
successfully created. Click here to
view it". It displays the anchor element as a string instead of an
html e
As find with conditions is being deleted from Rails 3.2. I have re-
factored my search code using the new syntax. In any case my find with
conditions was throwing errors. (find(:all, :conditions => ['section
LIKE ?', "%#{search_item}%"]))
Can anyone help in finding out why my instance variable @hom
tonyaraujo wrote in post #957977:
> add_index("pages", "subject_id")
> add-index("pages", "permalink")
Have you tried this?
add_index :pages, :subject_id
add_index :pages, :permalink
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to t
ROR 3, Ruby 1.9.2
Every time I use migration with add_index included, I get an "Invalid
date" error
I'm using windows 7 and Mysql2
Can anyone help?
Here's my code:
-
class CreatePages < ActiveRecord::Migration
def self.up
cr
Hello,
I am currently mapping ActiveRecord to an existent database system and
there is one oddity in it: the primary key starts with 1 and not with
0 and it is not even marked as auto increment.
I can't change the table or the column names since it would brake this
legacy structure.
So my question
Hi,
I am working on an ecommerce shop. Currently we cache all the product
thumbs using fragment caching with the product key and we expire the
cache using Touch.
<% cache product do %>
...
<% end %>
Now if I want to cache the product page, what key do I have to choose
considering that I am alread
44 matches
Mail list logo