[Rails] Anyone successfully ran JRuby 1.5.3, Rails 3, Tomcat6

2010-10-29 Thread MJW2529
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

[Rails] Re: when migrating add_index error: invalid date

2010-10-29 Thread tonyaraujo
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

[Rails] Re: simple Select can't find my Selected index lol

2010-10-29 Thread Frederick Cheung
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

[Rails] Re: Trying to work through update of Ruby and Install of Rails

2010-10-29 Thread James Byrne
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

[Rails] Re: Amazon s3 - paperclip - Rails3 - basic setup simple problems

2010-10-29 Thread Michael Baldock
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

[Rails] Content-Length missing from HEAD request response

2010-10-29 Thread Stefan Alder
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

[Rails] Re: Redirecting to a non-Rails application

2010-10-29 Thread Fritz Trapper
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

Re: [Rails] Re: Redirecting to a non-Rails application

2010-10-29 Thread Walter Lee Davis
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

[Rails] Trying to work through update of Ruby and Install of Rails

2010-10-29 Thread Stefan Hinck
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

[Rails] Testing error message when specing models?

2010-10-29 Thread Anthony Smith
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

[Rails] Re: Redirecting to a non-Rails application

2010-10-29 Thread Fritz Trapper
>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

[Rails] Re: how to make an ajax call to redirect

2010-10-29 Thread Jerome Fillioux
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

[Rails] Re: ActiveRecord :id offset

2010-10-29 Thread Andrius Bentkus
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

Re: [Rails] Asking Rails 3 to render a pdf from a file but getting template error instead

2010-10-29 Thread Rob Biedenharn
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

Re: [Rails] Redirecting to a non-Rails application

2010-10-29 Thread Walter Lee Davis
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

[Rails] Redirecting to a non-Rails application

2010-10-29 Thread Fritz Trapper
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

[Rails] Sortable List and Table Rows

2010-10-29 Thread Walter Lee Davis
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

[Rails] Re: Update password with Devise

2010-10-29 Thread Jeff N.
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

Re: [Rails] Asking Rails 3 to render a pdf from a file but getting template error instead

2010-10-29 Thread Michael Pavling
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

[Rails] Rails application thinks postgres password is wrong

2010-10-29 Thread akesterson
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

[Rails] simple Select can't find my Selected index lol

2010-10-29 Thread Cameron Vessey
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

[Rails] Asking Rails 3 to render a pdf from a file but getting template error instead

2010-10-29 Thread David Kahn
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

[Rails] Rake gives Command failed with status (1):

2010-10-29 Thread Neil Bye
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

[Rails] Could not find activesupport

2010-10-29 Thread Shaun P.
$ 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

[Rails] Rails3 UJS AJAX links when DOM is not loaded

2010-10-29 Thread RobinBrouwer
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

[Rails] Stream videos and secure the files

2010-10-29 Thread Ariel De La Rosa
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

Re: [Rails] Amazon s3 - paperclip - Rails3 - basic setup Noob simple problems

2010-10-29 Thread Walter Lee Davis
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.

[Rails] Authlogic-facebook connect

2010-10-29 Thread test_facebook testing
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

[Rails] Great startup opportunity (for real, no really, for real, not kidding, money back guarantee, ok now I am kidding, but really, for real)

2010-10-29 Thread surzycki
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

[Rails] Re: ActiveRecord :id offset

2010-10-29 Thread Marnen Laibow-Koser
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

[Rails] Re: link_to in the controller flash message?

2010-10-29 Thread Marnen Laibow-Koser
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

[Rails] Re: Is there a Rails3 way to "scope" views?

2010-10-29 Thread Marnen Laibow-Koser
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

[Rails] Re: Rails application on Solaris OS

2010-10-29 Thread Marnen Laibow-Koser
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

[Rails] Amazon s3 - paperclip - Rails3 - basic setup Noob simple problems

2010-10-29 Thread Michael Baldock
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

[Rails] Re: Add prefix to dynamic routes that are created

2010-10-29 Thread Vitaliy Yanchuk
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

[Rails] Post request by Java code for Rails application

2010-10-29 Thread Aruna Chinnamuthu
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

[Rails] Add prefix to dynamic routes that are created

2010-10-29 Thread Vitaliy Yanchuk
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_

[Rails] install in_place_editing

2010-10-29 Thread Ziburu Debian
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

[Rails] link_to in the controller flash message?

2010-10-29 Thread Christian Fazzini
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

[Rails] Search not working with ajax

2010-10-29 Thread MDM
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

[Rails] Re: when migrating add_index error: invalid date

2010-10-29 Thread Greg Ma
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

[Rails] when migrating add_index error: invalid date

2010-10-29 Thread tonyaraujo
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

[Rails] ActiveRecord :id offset

2010-10-29 Thread Andrius Bentkus
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

[Rails] Fragment caching with touch (2.3.5)

2010-10-29 Thread Greg Ma
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