[Rails] Re: uninitialized constant User::Authentication

2010-08-01 Thread Computer Manic
Daniel X Moore wrote: > I had the same problem, but restarting script/server fixed it. same to me -- 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

[Rails] Re: POST and GET

2010-08-01 Thread ct9a
To add, in relation to a GET request, there is a limit of number of characters that a url can be made of. http://stackoverflow.com/questions/1496080/limitation-of-url Cheers Gordon Yeong :) -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group

[Rails] Re: POST and GET

2010-08-01 Thread ct9a
GET - typically used when you access a page via a link (ie you cut and paste into the web browser) - all the values (ie form arguments) get passed in the url itself ( delimited by the ampersand character) - example: when the following link is copied and pasted to the web browser, a GET request is g

[Rails] The Future OF RUBY and RUBY ON RAILS

2010-08-01 Thread Musdev Musdev
DO you guys see Ruby and Ruby on Rails sticking around for a while? and do you see an increase in demand for ruby/ruby on rails developers? Regards -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group

Re: [Rails] POST and GET

2010-08-01 Thread Angel Robert Marquez
C=create=post=insert R=read=get=select U=update=put=update D=delete=delete=delete POST & GET are part of the http standard. Check out the fielding dissertation they're two of I think 9 methods http://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol http://www.ics.uci.edu/~fielding/pubs/dissertati

[Rails] POST and GET

2010-08-01 Thread Musdev Musdev
HEY Guys, Im new to rails. Can someone help explain POST and GET inrails, and maybe give an example? When is it used? Im learning rails via Agile web Development with Rails, and soon to download peepcode video's, are these good resources to learn from? Regards -- Posted via http://www.ruby-forum

[Rails] Re: contract work, San Francisco area

2010-08-01 Thread Fearless Fool
Since people reading this forum via Google Group or other feeds don't get the private message link (available on the ruby-forum.com site), you can contact us at robert.poor [atsign] bluedot [dot] com [...and I've probably violated several forum rules of etiquette by re-posting this amended

[Rails] Re: handle exception in ajax call

2010-08-01 Thread Guo Yangguang
I tested using non-ajax call,but the problem was same,the exception was not handled like the attachment and new_variant template was not rendered as expected.The render should not be used in the rescue block? can you help me? -- Posted via http://www.ruby-forum.com/. -- You received this mess

Re: [Rails] question about sqlite3-ruby on linux

2010-08-01 Thread hywhy
I hava solved this problem, use the fellow method: sudo ln -s /usr/local/sqlite-3.3.5/lib/libsqlite3.so.0 libsqlite3.so.0 then it works fine~ thanks everybody~ -- View this message in context: http://old.nabble.com/question-about-sqlite3-ruby-on-linux-tp29317264p29321639.html Sent from t

[Rails] [JOB] contract work San Francisco area [reposted with cause]

2010-08-01 Thread Fearless Fool
[Forgive the repost, but readers have pointed out that readers receiving this forum via Google Groups can't see the private message link. Fixed here...] Our startup is about to leave the hushed darkness of the lab and step into the light by launching a web-based application. Our team has written

[Rails] Re: "gem install mygem" does not install the gem

2010-08-01 Thread CUBRID
Thank you! I will post to the rubygems gorup. But, if you might have time to explain me which specification exactly should be set, I would be very glad for your help! What I understand from what you've said is the "s.platform = Gem::Platform::RUBY" specification. If, so, this is exactly what I did

[Rails] Re: contract work, San Francisco area

2010-08-01 Thread Martin Streicher
I cannot reach you. If you want to chat, you can ping me, since my Jabber ID is associated with this message. On Jul 29, 4:44 pm, Matt Jones wrote: > On Jul 27, 8:22 pm, Fearless Fool wrote: > > > > > > > Craig White wrote: > > > On Wed, 2010-07-28 at 01:27 +0200, Fearless Fool wrote: > > > >>

[Rails] Re: VIRTUAL RAILS>>STILL LEARNING

2010-08-01 Thread Rich d
Fidel, Thanks for your reply. I am using Linux Mint. does that sound right? I dont know how to look up what linux distribution I have installed. Also I typed in sqlite3 in my terminal and i got back SQLite version 3.6.16. How do I install sqlite3 development libraries? On Aug 1, 5:03 pm, Fide

Re: [Rails] VIRTUAL RAILS>>STILL LEARNING

2010-08-01 Thread Fidel Viegas
Hi Rich, It would help if you told us which Linux distribution you are using. But in order to use Sqlite with Ruby on Rails, you need version Sqlite 3. You should also install the Sqlite3 development libraries for your Linux distribution. You shouldn't also forget to install the development tools

[Rails] Re: simple redirect_to shows in log but doesn't redirect

2010-08-01 Thread Neil Bye
> > That's why your redirect doesn't work - the redirect just redirects > the request made by the JavaScript (rjs has a page.redirect_to thing > that will produce the JavaScript required to point the browser window > at a new location. If you are going to do a full page refresh though, > what's t

[Rails] Re: Std. IO streams in Ruby

2010-08-01 Thread Frederick Cheung
On Aug 1, 9:09 pm, Jatin Kumar wrote: > Frederick Cheung wrote: > > On Aug 1, 7:29 pm, Jatin Kumar > > > > @Fred :-I have been looking over the internet for a solution but never > got a real answer. Thanks for your help. > My web app allows the user to run code in the browser window itself, so

[Rails] Re: simple redirect_to shows in log but doesn't redirect

2010-08-01 Thread Frederick Cheung
On 1 Aug, 23:42, Neil Bye wrote: > Neil Bye wrote: > > >> Is there anything unusual in the view that triggers this? > > >> Fred > > > This is the problem line from the view: > >   <% remote_form_for :comment, :url=>story_comments_path(@story), :html > > => { :id => 'comment' } do |form| %> That

[Rails] Re: The {{key}} interpolation syntax in I18n messages is deprecated...

2010-08-01 Thread David Kahn
Please disregard this post. I just switched to using rvm, and seems that the issue auto-corrected. Also interestingly, my tests sped up, taking less than 30% of the time they used to take (units used to take 90 seconds, now 23 seconds). Not sure if this is due to using a slightly higher build numb

[Rails] Re: simple redirect_to shows in log but doesn't redirect

2010-08-01 Thread Neil Bye
Neil Bye wrote: > >> >> Is there anything unusual in the view that triggers this? >> >> Fred > > This is the problem line from the view: > <% remote_form_for :comment, :url=>story_comments_path(@story), :html > => { :id => 'comment' } do |form| %> ><%= form.text_field :body %> >

[Rails] VIRTUAL RAILS>>STILL LEARNING

2010-08-01 Thread Rich d
I am running windows vista on my lap top. I installed virtual box and virtual rails on this laptop and it is running linux. I am very new at learning rails. So far the only thing I have done is create a blog application by typing in: mkdir rails_projects cd rails_projects rails first_app so now

[Rails] recaptcha verification failture

2010-08-01 Thread badnaam
I am using the rails ambethia-recaptcha gem My recaptcha verification fails in production, the same code works just fine in development. I made sure the public and private keys are correct and the correct keys load in the production enviornment. My production server hostname is "server" (this is k

[Rails] Re: simple redirect_to shows in log but doesn't redirect

2010-08-01 Thread Neil Bye
> > Is there anything unusual in the view that triggers this? > > Fred This is the view: <%= render :partial => 'sidebar' %> <%= @story.user.login %>'s story <%= render :partial => 'friend' %> Content <%= @story.body %> <%= render :partial => 'comment' %> Make a comment: <% re

[Rails] Re: RC routing error that was not in Beta4

2010-08-01 Thread rails.n...@gmail.com
Is there a way I can lodge a ticket? -- 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+unsubscr...@googl

[Rails] Re: Std. IO streams in Ruby

2010-08-01 Thread Jatin Kumar
Frederick Cheung wrote: > On Aug 1, 7:29�pm, Jatin Kumar wrote: >> textfield where he/she can enter the input, and the program continues to >> >> In short, how can I get control of stdin, so that whenever the stdin >> waits for some user input, i get to know that it is waiting for the user >> inpu

[Rails] ActionMailer Caching

2010-08-01 Thread K. R.
Hi everyone I've a big problem with sending a mail over ActionMailer::Base (HTML mail). I deploy my app with capistrano (2.5.9) and use passenger (2.2.15) / apache as webserver. But sometimes, when a send a mail, it takes an old template (of an old release of capistrano) and encode the content not

[Rails] Re: Std. IO streams in Ruby

2010-08-01 Thread Frederick Cheung
On Aug 1, 7:29 pm, Jatin Kumar wrote: > In my rails controller, I am doing the following : > > @output = `g++ j.cpp -o "prog" && ./prog` > > This gives the output in the @output variable which i can display in my > view. But the above works only if the j.cpp is correct and doesn't > expect any u

[Rails] Re: simple redirect_to shows in log but doesn't redirect

2010-08-01 Thread Frederick Cheung
On Aug 1, 3:37 pm, Neil Bye wrote: > | 302 Found [http://localhost/stories/5/comments] > > What does this bit at the bottom refer to? That's saying that the response was a 302 and that the url that rails has just finished processing is http://localhost/stories/5/comments Is there anything unus

[Rails] order by newid()

2010-08-01 Thread Mark Horrocks
I want to get a set of records in random order. Will Car.order('newid()') work? Is there a better way to do this? Rails 3. -- 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, s

[Rails] Re: Rails / Rack version mismatch

2010-08-01 Thread Computer Manic
Sean wrote: > Did you get this solved I have similar issue and am stuck i got past this by installing rake =) sudo gem install rake -- 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 th

[Rails] Std. IO streams in Ruby

2010-08-01 Thread Jatin Kumar
In my rails controller, I am doing the following : @output = `g++ j.cpp -o "prog" && ./prog` This gives the output in the @output variable which i can display in my view. But the above works only if the j.cpp is correct and doesn't expect any user input. How can I use the stdin/stderr and stdout

[Rails] bundler 1.0.0.rc.2 not working with rails3 and jruby 1.5.1

2010-08-01 Thread Stephen Bannasch
I can't get a multiplatform bundler Gemfile to work in JRuby with a simple raisl3 app. See: http://github.com/carlhuda/bundler/issues/issue/502/#comment_336670 for more details. The only way to start the rails app in jruby seems to be to comment out the platform-specific parts for other Ruby

[Rails] InvalidToken for a Flash upload

2010-08-01 Thread Lily ^_^
Hi, I am developping a small Flash app to upload multiple files with a progress bar in a Rails site. Rails handles the server side. I have a controller that displays the view containing the flash, and it also provides a security token to the flash. The Flash gets it and send it back to the server

[Rails] The {{key}} interpolation syntax in I18n messages is deprecated...

2010-08-01 Thread David Kahn
All, Has anyone seen this - I am getting the following deprecation warning when running my functional tests under rails 2.3.8 (just moved an app from 2.3.4 up to 2.3.8 in prep to move to Rails 3 --- if you think this problem is solved in Rails 3 then let me know): The {{key}} interpolation syntax

[Rails] ror broken links in docs

2010-08-01 Thread Rajinder Yadav
Is someone aware that the rails complete api doc has broken links? http://api.rubyonrails.org/ if I click on actionpack/readme (top right) then off the main page I click 'learn more' for 'Helpers for forms, dates, action links, and text' I get a broke link, there are others I assume this is

[Rails] Re: Problem with non-ascii characters in forms: "incompatible character encodings: UTF-8 and ASCII-8BIT"

2010-08-01 Thread Rolf Pedersen
I did search the list, and I found people have similar problems with Ruby 1.9.1, but not directly comparable to my issue. In my simple case it DOES work, as long as I use two controller actions instead of just the one... Meanwhile.. yes, do do stick to Ruby 1.8.7 until I know more :o) Best regard

[Rails] Re: simple redirect_to shows in log but doesn't redirect

2010-08-01 Thread Neil Bye
| 302 Found [http://localhost/stories/5/comments] What does this bit at the bottom refer to? -- 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..

[Rails] Re: handle exception in ajax call

2010-08-01 Thread Guo Yangguang
hi can you help me? -- 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 rubyo

[Rails] Re: Exception: can't dup Symbol

2010-08-01 Thread Manu Lorenzo
Frederick Cheung wrote: > On Jul 31, 5:03�pm, Manu Lorenzo wrote: >> def try_to_login(user, options = {}) >> � � user_hash = {:screen_name => user.screen_name, :password => >> user.password} >> � � user_hash.merge!(options) >> � � post :login, :user => :user_hash > > You meant to write :user => u

[Rails] Re: Development Environment (Beginners Question)?

2010-08-01 Thread Yiannis
I was developing in windows for a long time but it had many constrains and problems. The best advice is of Michael Pavling, to use a machine similar to the server that you will do the deployment. I can't give up windows so I installed a ubuntu 10.04 server edition in a virtual machine and it is wor

[Rails] Re: RC routing error that was not in Beta4

2010-08-01 Thread rails.n...@gmail.com
Really hoping this is a bug not a new policy I can see why "new" might want to be a reserved word in some way But in this case, I really do need rails to map the "new" path so it allows creating sub member items EG: /section/1/new/ is so much cleaner compared to /section/new/?parent=1 --

[Rails] fields_for can not group its params when ajax

2010-08-01 Thread Re Hy
hi book and page is one_to_many relationship.I want to create them in a single form.But when clicking create button,the submitted params for pages are not grouped correctly, i want "book"=>{"new_pages"=>[{"name"=>"", "color"=>""}, {"name"=>"","color"=>""}] but it is "book"=>{"new_pages"=>[{"name

Re: [Rails] if then within <% %> region in html

2010-08-01 Thread Michael Pavling
On 1 August 2010 11:32, Dis Tec wrote: > I'm returning a value from the db which is true/false and I'd like to > convert that to something more meaningful - how can I incorporate an if > then into the inline html? You can use conditional checking inline, with "normal" 'if...else' blocks: <% i

[Rails] authlogic and controlling the resources users can access

2010-08-01 Thread bingo bob
question re authlogic, all set up but now i'd ike to control access to a resource so only users who own that resource can control it, I figure I put this in the Advert controller - is this approach sound ? http://pastie.org/1069488 I also specify that an admin (just a boolean controlled user) can

[Rails] if then within <% %> region in html

2010-08-01 Thread Dis Tec
I'm returning a value from the db which is true/false and I'd like to convert that to something more meaningful - how can I incorporate an if then into the inline html? I have tried if ... puts "xxx", but to no avail. Sorry, I'm a noobie and not quite got my head around this as yet or the error m

Re: [Rails] Development Environment (Beginners Question)?

2010-08-01 Thread Michael Pavling
On 1 August 2010 06:16, ncage wrote: > is a windows machine good enough to get started with ROR Development? Honestly, without trying to be contentious: no. You *can* get along getting into Rails using Windows (I started that way with InstantRails), but you will discover occasional things that d

[Rails] check box for terms and conditions

2010-08-01 Thread Dis Tec
Is there a smart way or example for listing terms and conditions and ensuring that they have been read? I'm a relative noob to RonR and I'd like to find a good way to do this? I don't want to store anything in the db, so I just need validation, how best to do this? Thanks -- Posted via http://ww

[Rails] Development Environment (Beginners Question)?

2010-08-01 Thread ncage
Hello people. I'm just getting into cutting my teeth in ROR development. Currently all my machines are Windows 7 machines. I know most of the hard core ROR in general use Macs. I definitely won't be able to use a mac. Would you recommending using an ubuntu machine or is a windows machine good enoug

[Rails] RC routing error that was not in Beta4

2010-08-01 Thread rails.n...@gmail.com
In beta4 I could do this: resources :sections do get :new, :on=>:member end But not with RC If I change "new" to be something else, I can do that So it seems that "new" is now treated like a reserved word of sorts? I really need to share the new method between "sections/new" and "secti

[Rails] radio box validation

2010-08-01 Thread Dis Tec
I have created some radio boxes as follows: <% f.radio_button :usertype, "false" %>False <% f.radio_button :usertype, "true" %>True where usertpe is a boolean in the db I want to be able to create a default selection and I want to validate the options and ensure that for whatever reason there is

[Rails] question about sqlite3-ruby on linux

2010-08-01 Thread hywhy
first sorry for my poor english.I have a question about sqlite3-ruby on linux. I have compiled and installed the ruby 1.9.1, sqlite3 and sqlite3-ruby on redhat enterprise version. but when I use irb and import the sqlite3 module, it will throw the error, what's the matter. irb(main):001:0> requi

[Rails] Re: Problem with non-ascii characters in forms: "incompatible character encodings: UTF-8 and ASCII-

2010-08-01 Thread Fernando Perez
Hahaha! Search the list, and you'll notice that people have already fallen into this trap. Wait 'til Rails 3 AND Ruby 1.9.2 get released to jump to Rails+Ruby1.9 Stick to Rails 2.3.8 and Ruby 1.8.7 until then. -- Posted via http://www.ruby-forum.com/. -- You received this message because you