[Rails] Change from 3.0.6 => Rails 3.0.7 "no such file to load -- action_mailer/railtie"

2011-05-01 Thread Jeff Deville
In my application.rb, I have this: #require "rails/all" require "action_controller/railtie" require "action_mailer/railtie" require "active_resource/railtie" require "active_model/railtie" (I didn't want ActiveRecord) This worked fine up to 3.0.6, but now fails with: /Users/jeffdeville/Document

Re: [Rails] Re: an advice for search.

2011-05-01 Thread David Kahn
On Sun, May 1, 2011 at 5:15 PM, Phoenix Rising wrote: > +1 for meta_search, I <3 that thing > You know I almost cried the first time I used meta_search in the past I have written my own searches > > On May 1, 2:45 pm, Mauro wrote: > > On 1 May 2011 21:12, Carina Brito wrote: > > > > > Sorr

[Rails] Re: Very close to solution, can't figure out this bug with jQuery .submit()

2011-05-01 Thread Frederick Cheung
On May 1, 11:10 pm, Tom DeHart wrote: > Frederick Cheung wrote in post #996132: > Also, I understand that submitting the entire form is a poor solution to > the problem but this is literally the first time I've ever submitted a > remote form with JavaScript before so it was first thing I came u

[Rails] Re: Why this NameError ???

2011-05-01 Thread Bruce Wilson
Thank you , Frederick On May 1, 1:58 pm, Frederick Cheung wrote: > On May 1, 8:56 pm, Bruce Wilson wrote: > > > Why would this: > > > $ rails generate migration add_user_id_to_articles user_id:integer > > > return this: > > > NameError: undefined local variable or method 'integer' for > > main:O

[Rails] Re: an advice for search.

2011-05-01 Thread Phoenix Rising
Also, and I should have said this before, I noticed that in your property list it looks like you're storing social security numbers (SSN). I just want to add a friendly word of advice - encrypt them if you can. I can see a lot of havoc happening if some hacker got his hands on a list of unencrypt

[Rails] Re: an advice for search.

2011-05-01 Thread Phoenix Rising
+1 for meta_search, I <3 that thing On May 1, 2:45 pm, Mauro wrote: > On 1 May 2011 21:12, Carina Brito wrote: > > > Sorry, i went at my gemfile and i saw what i use for search is meta_search. > > Execuse me. > > I'm trying meta_search now. :-) -- You received this message because you are subs

[Rails] Re: Very close to solution, can't figure out this bug with jQuery .submit()

2011-05-01 Thread Tom DeHart
Frederick Cheung wrote in post #996132: > Have you checked the browser's JavaScript console for any errors? That > last line looks suspicious to me. I would have thought $ > (value.form).submit() would suffice. > Also I think this general approach might be built on slightly shaky > approach - Since

[Rails] Re: Very close to solution, can't figure out this bug with jQuery .submit()

2011-05-01 Thread Frederick Cheung
On May 1, 10:24 pm, Tom DeHart wrote: > First, a picture of what I'm doing:http://i.imgur.com/MO2o8.png > > A user should be able to select as many of these checkboxes and click on > the "Vote Yes" or "Vote No" links (styled as buttons) to change their > vote to yes or no (vote.approval = true o

[Rails] Very close to solution, can't figure out this bug with jQuery .submit()

2011-05-01 Thread Tom DeHart
First, a picture of what I'm doing: http://i.imgur.com/MO2o8.png A user should be able to select as many of these checkboxes and click on the "Vote Yes" or "Vote No" links (styled as buttons) to change their vote to yes or no (vote.approval = true or vote.approval = false). I got it working so th

[Rails] Re: Why this NameError ???

2011-05-01 Thread Frederick Cheung
On May 1, 8:56 pm, Bruce Wilson wrote: > Why would this: > > $ rails generate migration add_user_id_to_articles user_id:integer > > return this: > > NameError: undefined local variable or method 'integer' for > main:Object   ??? Did you type this at the rails console rather than at the command

Re: [Rails] an advice for search.

2011-05-01 Thread Mauro
On 1 May 2011 21:12, Carina Brito wrote: > Sorry, i went at my gemfile and i saw what i use for search is meta_search. > Execuse me. I'm trying meta_search now. :-) -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group,

[Rails] Re: Rails 3 with TinyMce

2011-05-01 Thread ben
Isn't that what tinymce is suppose to do? On Apr 30, 8:18 pm, heithem nouira wrote: > Hi, > I'm using TinyMce with Rails 3 to input rich text. > when i enter a text  into tinymce editor , the text is saved in the > database as text so a p tag is added  to the text!!. > i need some help > Best r

[Rails] Why this NameError ???

2011-05-01 Thread Bruce Wilson
Why would this: $ rails generate migration add_user_id_to_articles user_id:integer return this: NameError: undefined local variable or method 'integer' for main:Object ??? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to th

[Rails] Re: display issue with elements in a textiled box

2011-05-01 Thread sol.manager
You bring up some interesting points, so I took a look at the database. Here is a copy of one post descripition from the database itself. Perhaps the • are cut and pasted while the other elements are being inserted via textile editor. That would account for this i think. Thank you again. I like to

Re: [Rails] Re: display issue with elements in a textiled box

2011-05-01 Thread Chris Mear
(Reply moved inline.) On 1 May 2011, at 20:12, sol.manager wrote: > On May 1, 2:33 pm, Chris Mear wrote: > >> On 1 May 2011, at 18:56, sol.manager wrote: >> >>> I have been messing with my CSS sytlesheets to fix some display >>> issues. Specifically, messed with and elements. Now i have >>>

Re: [Rails] an advice for search.

2011-05-01 Thread Carina Brito
Sorry, i went at my gemfile and i saw what i use for search is meta_search. Execuse me. 2011/4/30 Mauro > On 29 April 2011 23:50, Carina Brito wrote: > > I use searchlogic. This gem is very easy. > > Look this page 'https://github.com/binarylogic/searchlogic' > > In this asciicast > http://asci

[Rails] Re: display issue with elements in a textiled box

2011-05-01 Thread sol.manager
I think I may know the answer and it isn't CSS. I use a gem called blavosync to sync my development database with production. I just set up a new computer this week and used MySQL Workbench to create the empty development database prior to synching with production. In MySQL when you create a schema

Re: [Rails] Re: How to change default port in Net/FTP

2011-05-01 Thread Michael Pavling
On 1 May 2011 20:00, Marc Heiler wrote: > The Ruby FTP library should really have an optional setter for > specifying a non-standard port to use. ??? Have you even read the docs? http://www.ruby-doc.org/stdlib/libdoc/net/ftp/rdoc/classes/Net/FTP.html Search for "port"... :-/ -- You received thi

[Rails] Re: How to change default port in Net/FTP

2011-05-01 Thread Marc Heiler
The Ruby FTP library should really have an optional setter for specifying a non-standard port to use. -- 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 rubyon

Re: [Rails] Re: Strange behavior

2011-05-01 Thread Ernesto Rocha
Sorry about this mess, but I just figured it out what was really happening and fixed it. Rails probably always interpret the plus sign as a white space, but everything started because I couldn't find how the authenticity_token is sent using <%= link_to "Destroy", [@client, address], :confirm => 'A

Re: [Rails] display issue with elements in a textiled box

2011-05-01 Thread Chris Mear
On 1 May 2011, at 18:56, sol.manager wrote: > I have been messing with my CSS sytlesheets to fix some display > issues. Specifically, messed with and elements. Now i have > noticed on a page with elements in a textile editor box, that > the list bullet is showing up as "• " instead of "•". >

[Rails] display issue with elements in a textiled box

2011-05-01 Thread sol.manager
I have been messing with my CSS sytlesheets to fix some display issues. Specifically, messed with and elements. Now i have noticed on a page with elements in a textile editor box, that the list bullet is showing up as "• " instead of "•". I am assuming this a CSS issue and not a textile or r

Re: [Rails] Re: One click two actions

2011-05-01 Thread David Kahn
On Sun, May 1, 2011 at 3:36 AM, johnlucas wrote: > Thank you for the suggestion. This is new for me and I don't have a > strong experience with Ajax and JQuery, I just played around a bit > with them in some php project. > > Could you point me to a comprehensive guide or tutorial? > Well, first t

Re: [Rails] Re: Re: Re: Re: Re: Form parameters not passing to controller

2011-05-01 Thread Colin Law
On 1 May 2011 17:02, David Mr. wrote: > Colin Law wrote in post #996041: >> >> So if you put a break point immediately after >> setax = setA.split(" ") >> then setax is nil, but if you then (while still broken) do >> setax=setA.split(" ") then setax gets a value. >> If so I find that most remarkab

[Rails] Re: Re: Re: Re: Re: Form parameters not passing to controller

2011-05-01 Thread David Mr.
Colin Law wrote in post #996041: > > So if you put a break point immediately after > setax = setA.split(" ") > then setax is nil, but if you then (while still broken) do > setax=setA.split(" ") then setax gets a value. > If so I find that most remarkable. > > You have not said how setax and setbx a

Re: [Rails] Re: "uninitialized constant PostsController::Post"

2011-05-01 Thread Colin Law
On 1 May 2011 10:11, John shelfer wrote: > > > On May 1, 4:12 am, Colin Law wrote: >> On 1 May 2011 05:52, amrit pal pathak wrote: >>> ... >> Am I the only one thinking that this poster is winding us up? >        Not at all.He is new to Rails So I think we should help him > to >        resolve

Re: [Rails] Where is the anchor?

2011-05-01 Thread Chris Mear
On 1 May 2011, at 15:48, Ralph Shnelvar wrote: > Chris, > > Sunday, May 1, 2011, 6:52:39 AM, you wrote: > > CM> On 1 May 2011, at 13:37, Ralph Shnelvar wrote: > >>> It has to be simple ... but I can't find it. >>> >>> Where in the _controller_ does the anchor show up? >>> >>> >>> >>> If the

Re[2]: [Rails] Where is the anchor?

2011-05-01 Thread Ralph Shnelvar
Chris, Sunday, May 1, 2011, 6:52:39 AM, you wrote: CM> On 1 May 2011, at 13:37, Ralph Shnelvar wrote: >> It has to be simple ... but I can't find it. >> >> Where in the _controller_ does the anchor show up? >> >> >> >> If the link_to is to xyz#abc ... >> >> I end up at the right dispatch fu

[Rails] Can't figure out how to submit specific data with javascript

2011-05-01 Thread Tom DeHart
I'm unable to figure out how to submit specific data to a Rails update() method via the jQuery submit() method. This is the code snippet I'm working with: <% form_for(vote, :remote => true) do |f| %> <%= check_box_tag "selection", vote.id %> <% end %> ... <%= link_to 'Vote Yes', ballots_pat

Re: [Rails] Where is the anchor?

2011-05-01 Thread Chris Mear
On 1 May 2011, at 13:37, Ralph Shnelvar wrote: > It has to be simple ... but I can't find it. > > Where in the _controller_ does the anchor show up? > > > > If the link_to is to xyz#abc ... > > I end up at the right dispatch function > > def xyz > # I get here > end > > But I cannot find w

[Rails] Re: "uninitialized constant PostsController::Post"

2011-05-01 Thread amrit pal pathak
On May 1, 5:11 am, John shelfer wrote: > On May 1, 4:12 am, Colin Law wrote: > > > > > > > > > On 1 May 2011 05:52, amrit pal pathak wrote: > > > > ... > > > Showing /home/amrit/final/app/views/posts/index.html.erb where line #4 > > > raised: > > > undefined method `posts_path' for #<#:0xb67f5

[Rails] Where is the anchor?

2011-05-01 Thread Ralph Shnelvar
It has to be simple ... but I can't find it. Where in the _controller_ does the anchor show up? If the link_to is to xyz#abc ... I end up at the right dispatch function def xyz # I get here end But I cannot find where to find abc. -- Posted via http://www.ruby-forum.com/. -- You receiv

[Rails] Re: "uninitialized constant PostsController::Post"

2011-05-01 Thread John shelfer
On May 1, 4:12 am, Colin Law wrote: > On 1 May 2011 05:52, amrit pal pathak wrote: > > > ... > > Showing /home/amrit/final/app/views/posts/index.html.erb where line #4 > > raised: > > undefined method `posts_path' for #<#:0xb67f5560> > > Amrit I cannot believe that you are asking that question.

Re: [Rails] Re: "uninitialized constant PostsController::Post"

2011-05-01 Thread Michael Pavling
On 1 May 2011 09:12, Colin Law wrote: > Amrit I cannot believe that you are asking that question. > > Am I the only one thinking that this poster is winding us up? Since post 1 I've thought you're banging your head against a wall :-/ Stuff like "this is not a [h]ard and fast rule that it must be

[Rails] Re: One click two actions

2011-05-01 Thread johnlucas
Thank you for the suggestion. This is new for me and I don't have a strong experience with Ajax and JQuery, I just played around a bit with them in some php project. Could you point me to a comprehensive guide or tutorial? On Apr 26, 8:29 pm, David Kahn wrote: > On Tue, Apr 26, 2011 at 8:45 AM,

Re: [Rails] More detailed Test::Unit error report

2011-05-01 Thread Gustavo de Sá Carvalho Honorato
On Sun, May 1, 2011 at 4:57 AM, Frederick Cheung wrote: > > > On 1 May 2011, at 03:20, Gustavo de Sá Carvalho Honorato< > gustavohonor...@gmail.com> wrote: > > Hi, > > I'm starting to use Test::Unit to create unit tests for my Rails > Applications/Plugins. I don't have much experience in Ruby Uni

Re: [Rails] Re: "uninitialized constant PostsController::Post"

2011-05-01 Thread Colin Law
On 1 May 2011 05:52, amrit pal pathak wrote: > ... > Showing /home/amrit/final/app/views/posts/index.html.erb where line #4 > raised: > undefined method `posts_path' for #<#:0xb67f5560> Amrit I cannot believe that you are asking that question. Look back through your questions and you will see yo

Re: [Rails] Re: Re: Re: Re: Form parameters not passing to controller

2011-05-01 Thread Colin Law
On 30 April 2011 22:38, David Mr. wrote: > Colin Law wrote in post #995978: >> On 30 April 2011 18:00, David Mr. wrote: So gamma[:C] is not a collection. Have a look at the Rails Guide on >>> >>> >>> attr_accessor :setA, :setB, :setAList, :setBList, :google >> >> First I would stick to

Re: [Rails] More detailed Test::Unit error report

2011-05-01 Thread Frederick Cheung
On 1 May 2011, at 03:20, Gustavo de Sá Carvalho Honorato wrote: > Hi, > > I'm starting to use Test::Unit to create unit tests for my Rails > Applications/Plugins. I don't have much experience in Ruby Unit Testing. The > problem is that the output report is very simple and it is very difficu

[Rails] Fbgraph

2011-05-01 Thread loganathan sellappa
Hi All, Am new to rails ,am using fbgraph gem in rails 3 having the follwoing error { "error": { "type": "OAuthException", "message": "Invalid redirect_uri: Given URL is not allowed by the Application configuration." } } In my controller, def start redirect_to client.a