[Rails] which plugin useful for facebook API?

2009-03-17 Thread Tushar Gandhi
Hi, I am integrating a facebook with my application. I am using plugin "rfacebook" for that. I read that there is also one more plugin is availabe which is "facebooker". Which should I use? and why? Thanks, Tushar. -- Posted via http://www.ruby-forum.com/. --~--~-~--~~

[Rails] Re: Lin_to_remote and update a text area

2009-03-17 Thread Sudhi Kulkarni
Ram wrote: > its inner HTML. So use > > On Mar 18, 8:53�am, Sudhi Kulkarni Hi Ram, I tried but once I add br it says it is an RJS Error. Don't know why ... the snippet I used is link_to_function name do |page| page.insert_html :bottom,'text_area', "Hello world " end Thanks

[Rails] Re: Google meshups

2009-03-17 Thread Angappan Ayyavoo
Krishna Porandla wrote: > Hello guys, > > How to change the google Maptype to hybrid instead of satelite/map you can get it by map.setMapType(G_SATELLITE_MAP); map.setMapType(G_HYBRID_MAP); map.setUIToDefault(); // to get all views thanks -- Posted via http://www.ruby-forum.com/.

[Rails] Re: Disabel "pluralize_table_names" in Rails 2.3.2

2009-03-17 Thread Fresh Mix
Fresh Mix wrote: > What is it in Rails 2.3.2? > > ActiveRecord::Base.pluralize_table_names = false Help? -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Ta

[Rails] sell D&g T-shirts, BBC T-shirts, Christan Audigier T-shirts,

2009-03-17 Thread Zhang Jiess
We are professional ,jeans and T-shirt supplier in china. Apparel : jean:.-jeans,Diesel-jeans,bape jean,bbc jean,d&g jean armani jean Hoody:bape hoody,bbc hoody,LRG hoody,clh hoody,ed hardy hoody,. hoody,10 deep hoody jacket: af jacket,.north face jacket... long sleeve: Burberry sleeve,

[Rails] Re: Flex and Rails - NoMethodError

2009-03-17 Thread Enzo Rivello
Conrad Taylor wrote: > On Tue, Mar 17, 2009 at 5:29 PM, Enzo Rivello < > rails-mailing-l...@andreas-s.net> wrote: > >> >> {qdg.selectedItem.id} >> @question.save >> >> thanks a lot for reading > > > Hi, the last two lines seem suspect because you're trying to delete and > save >

[Rails] Re: Rail 2.2 Sort multiple Columns in report

2009-03-17 Thread Robert Walker
Ian H Stewart wrote: > My end user would like a report on a single page that he can select > the header field and sort by that. Wouldn't you just need to construct an "order by" clause and use that when you find the records? @users = User.find(:all, :order => "state, points DESC") I might even

[Rails] Re: active record logical cols

2009-03-17 Thread Robert Walker
bramu...@gmail.com wrote: > Like Student.find returns dob and name I want to add age to it some > thing like that. Columns that are not exist in the database table but > I want to add to the return record. How can I do this?? Age would just be a method on the Student model calculated from DOB: c

[Rails] Re: Lin_to_remote and update a text area

2009-03-17 Thread Ram
its inner HTML. So use On Mar 18, 8:53 am, Sudhi Kulkarni wrote: > Shandy Nantz wrote: > >> render :text => "This is new line" > > > You could say: > > > render :inline => "<%= text_field 'test', 'name' %>" > > > This would just re-populate the div you are trying to update with the > > above he

[Rails] active record logical cols

2009-03-17 Thread bramu...@gmail.com
HI, I am new to Rails started project couple of weeks back. Here is my requirement please let me know the solution. When I do find on my active record class it returns all the columns in my database table. I want to add one or two more cols to the return record. Like Student.find returns

[Rails] Re: Getting Error

2009-03-17 Thread Priya Buvan
Hi, As Sijo said, setup correct DB connection. You have to mention DB name in database.yml and also mentioned DB should be in your Mysql or whatever you are using. Just mention DB name in database.yml and do as follows, demo> rake db:create:all and then restart your server. -- Posted via

[Rails] Re: Getting Error

2009-03-17 Thread Sijo Kg
Did u properly setup database connections in config/database.yml ? -- 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 e

[Rails] Rail 2.2 Sort multiple Columns in report

2009-03-17 Thread Ian H Stewart
My end user would like a report on a single page that he can select the header field and sort by that. First all the data is laid out in a table. Then each row is a different user record. NameState Zip Points Any tips on how I could allow the user to click an

[Rails] Re: Lin_to_remote and update a text area

2009-03-17 Thread Sudhi Kulkarni
Shandy Nantz wrote: >> render :text => "This is new line" > > You could say: > > render :inline => "<%= text_field 'test', 'name' %>" > > This would just re-populate the div you are trying to update with the > above helper code. > > -S Hi, Thanks for all the inputs. The following line works

[Rails] Issues with database/object caching and testing

2009-03-17 Thread Ricky Barnaby
Hi all, I just burned two hours of development time trying to debug this issue. Can someone please tell me if there is a way to disable database caching when running unit tests or another way to avoid running into this type of problem?? This does not work: assert periods(:period1).ongoing? #

[Rails] Re: Has many association problem

2009-03-17 Thread Valentino Lun
any idea? 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-talk@googlegroups.com To unsu

[Rails] set_table_name woes, fragmented domain class

2009-03-17 Thread Michael J. I. Jackson
Hi all, I'm running Rails on top of a Mongrel cluster. I have several model classes that are going to have so many records it is not feasible to keep them all in the same table. So I've split out the records into many different tables, each with its own suffix which corresponds to the id

[Rails] Recommended webserver for deploying Rails

2009-03-17 Thread Joshua Partogi
Dear all, What is the best architecture in terms of performance for Rails. Is lighttpd + mongrel the most recommended deployment architecture for Rails? Or is there any better architecture that outperform this architecture? Thank you very much in advance. -- If you can't believe in God the cha

[Rails] Re: Flex and Rails - NoMethodError

2009-03-17 Thread Conrad Taylor
On Tue, Mar 17, 2009 at 5:29 PM, Enzo Rivello < rails-mailing-l...@andreas-s.net> wrote: > > Hi all!! > > Recently , i tryed to integrate flex and rail, and it was a nice work, > really fast and flexible, until a curious bug > > On my local development machine, i try to destroy an item trough an i

[Rails] Using mysql's 'REPLACE' command in active record

2009-03-17 Thread Richard
Is this possible ?? Many thnaks Richard --~--~-~--~~~---~--~~ 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-talk@googlegroups.com To unsubscribe from this gr

[Rails] Re: Refactoring module

2009-03-17 Thread Valentino Lun
Many thanks to Ar Chron clear explanation. I think I got the concept of abstract class now. But how about if I have more than one Generic Class? class Request set_table_name "request" set_primary_key "column_a" def method_1a end end class Tasklist set_table_name "tasklist" def meth

[Rails] Re: Who are the ROR guru's on this board ?

2009-03-17 Thread Matt Jones
I'm going to assume that you're with CWI Hosting, judging by your posted name and a post I found on another webmaster board. If so, some totally free advice: - the market for RoR shared hosting is not very good; shared servers just don't typically have the capacity to handle Rails sites with any

[Rails] Re: How can I validate a text_field_tag?

2009-03-17 Thread tony
since your text field tag isn't part of the model, you could instantiate the object with the value from the tag and then call is_valid and check the errors variable if you want the message. else you'll have to write your own validation methods On Mar 17, 3:15 pm, Heinz Strunk wrote: > But the t

[Rails] Re: Problem when trying to freeze gem (XP user)

2009-03-17 Thread sultan
Urgent Please! Someone help! On Mar 17, 8:35 am, sultan wrote: > I am on XP. This is the first time I am trying to freeze to a gem. > This is what I get: > > rake rails:freeze:gems --trace > (in C:/Documents and Settings/Sultan/My Documents/Aptana Studio/ > upload) > ** Invoke rails:freeze:gems

[Rails] Re: Rails 2.3, restful_authentication, and passenger

2009-03-17 Thread Matt Jones
As a sanity check, did you update the location of Passenger in your Apache config? I've made that mistake... --Matt Jones On Mar 17, 3:09 pm, yaphi wrote: > Yup. I did that, upgraded to Passenger 2.1.2 (which Rails 2.3 > required) > > On Mar 17, 3:05 pm, Conrad Taylor wrote: > > > On Tue, Mar

[Rails] Re: language parameters gem calendar_date_select

2009-03-17 Thread Chris
And more info here: http://blog.nominet.org.uk/tech/2007/06/14/date-and-time-formating-issues-in-ruby-on-rails/ On Mar 17, 10:01 am, Herman Müller wrote: > Chris wrote: > > Put this at the very end of environment.rb (*after* the 'end' of the > > Rails::Initializer.run method): > > > CalendarDate

[Rails] Flex and Rails - NoMethodError

2009-03-17 Thread Enzo Rivello
Hi all!! Recently , i tryed to integrate flex and rail, and it was a nice work, really fast and flexible, until a curious bug On my local development machine, i try to destroy an item trough an id, and all goes well. i set up on the production machine and pop-up this error: NoMethodError (unde

[Rails] Re: HABTM and radio_button

2009-03-17 Thread elliottg
Wolas!, Thanks for the reply. I will be able to try this out in the morning. I'll get back to you with the results. Elliott On Mar 17, 5:58 am, "\"Wolas!\"" wrote: > If i understood correctly, you want the role to be added to the user > upon creation, but its not. > > here is the code that wou

[Rails] Re: language parameters gem calendar_date_select

2009-03-17 Thread Chris
Now I remember I had the same problem when trying to use British- format dates (dd/mm/). Try this as a starting point: http://groups.google.com/group/calendar_date_select/browse_thread/thread/86d0451c515c2074/9f93a4a5976119fa That discussion is getting old now, so it might be worth looking thr

[Rails] Re: How do I match strings?

2009-03-17 Thread Robert Walker
Chris Gunnels wrote: > Ok I know that sounds newbish, but I don't want to match the entire > string. I just want to match the first 25 characters or so. > > I have a hash that looks like > > somestuff[:something] > > Now I want somestuff[:something] to equal a string. > > somestuff[:something]

[Rails] Re: Looking for Ruby on Rails applications for a demo

2009-03-17 Thread Pratik
http://www.opensourcerails.com/ On Mon, Mar 16, 2009 at 1:01 PM, Pepe Sanchez wrote: > > Hi all, > > I am looking for most popular ruby on rails applications that are > currently implemented, and also who is using RoR to build new > applications > > Thanks > -- > Posted via http://www.ruby-forum

[Rails] Re: How do I match strings?

2009-03-17 Thread Philip Hallstrom
On Mar 17, 2009, at 3:24 PM, Chris Gunnels wrote: > > Ok I know that sounds newbish, but I don't want to match the entire > string. I just want to match the first 25 characters or so. > > I have a hash that looks like > > somestuff[:something] > > Now I want somestuff[:something] to equal a stri

[Rails] Re: Segment error loading rails

2009-03-17 Thread Chris Cann
I have deleted all my ruby191 stuff and recreated it from scratch by downloading the binaries of ruby 191 into c:\ruby191, (path has c:\ruby191\bin) as I already have ruby 186 under c:\ruby\bin. After getting netbeans 6.5 (6.7m2 latest build) to recognise my new environment I then installed my

[Rails] How do I match strings?

2009-03-17 Thread Chris Gunnels
Ok I know that sounds newbish, but I don't want to match the entire string. I just want to match the first 25 characters or so. I have a hash that looks like somestuff[:something] Now I want somestuff[:something] to equal a string. somestuff[:something] == 'sadfasdfsdfasdf' the problem is tha

[Rails] Re: Session problem with subdomains

2009-03-17 Thread Xdmx Xdmx
> that should be ok. ok, i'll try directly in production mode > Those are all really differnt domains. Setting the domain to > users.local would allow sharing with anything.users.local and > users.local but nothing more. Remember to restart the app between > changes yep, i restart it everytime

[Rails] Re: How can I validate a text_field_tag?

2009-03-17 Thread Heinz Strunk
But the text_field_tag has nothing to do with the @record so it wouldn't help if I was checking if the @record is valid, right? tony wrote: > you could also try...@record.is_valid? > > which will validate w/o saving > > On Mar 17, 11:00�am, Frederick Cheung -- Posted via http://www.ruby-for

[Rails] Re: How can I validate a text_field_tag?

2009-03-17 Thread Frederick Cheung
On Mar 17, 10:04 pm, Heinz Strunk wrote: > Hey, > > both are actually pretty good approaches I think but I was hoping I > could use that could use error_messages_for for the text_field_tag... > that's probably not the case? > If I was using "if not_good(params..." I'd need to display it > diffe

[Rails] Re: Session problem with subdomains

2009-03-17 Thread Frederick Cheung
On Mar 17, 10:06 pm, Xdmx Xdmx wrote: > > Your web browser won't allow you to set a top level cookie (ie one > > on .localhost), to the web browser it's as if you tried to set one > > for .com > > Hi Frederick, ok..so should it work in the production mode? where the > session_domain would be li

[Rails] Re: Looking for Ruby on Rails applications for a demo

2009-03-17 Thread Venkata
Spree is an interesting ecommerce application. It runs out of the box and has a growing community. http://github.com/schof/spree/tree/master On Mar 16, 6:14 pm, Bob Martens wrote: > Look around is the best advice. > > Check outhttp://github.comand see what you can find there ... many > repos

[Rails] Re: why does this happen...

2009-03-17 Thread ball
Thanks David, I poked around in the debugger a bit after your suggestion, and honestly, I don't understand Ruby code well enough to make sense of it all. Not to mention, I kept running into >> No sourcefile available for (eval) However, what I did find was that the << operator, did not issue the

[Rails] Re: Who are the ROR guru's on this board ?

2009-03-17 Thread pepe
Fred Cheung. Most helpful. Pepe On Mar 17, 2:38 am, Cwi Tech guy wrote: > Hi, >   I am looking for the most knowledgeable ROR developers on this board. > In your opinion, who are the most knowledgeable and helpful users on > this board? > > I am offering a free 1 year hosting account for develo

[Rails] Re: How to truncate a table from a rake file

2009-03-17 Thread Frederick Cheung
On Mar 17, 7:58 pm, Chris Gunnels wrote: > Conrad Taylor wrote: > > On Tue, Mar 17, 2009 at 12:36 PM, Chris Gunnels < > > rails-mailing-l...@andreas-s.net> wrote: > > >> I am new to rails and want to figure out the syntax for truncating a > >> table using a rake file. Any ideas? thanks in advance

[Rails] Re: Session problem with subdomains

2009-03-17 Thread Xdmx Xdmx
> Your web browser won't allow you to set a top level cookie (ie one > on .localhost), to the web browser it's as if you tried to set one > for .com Hi Frederick, ok..so should it work in the production mode? where the session_domain would be like '.domain.com' > In the app i'm working on righ

[Rails] Re: How can I validate a text_field_tag?

2009-03-17 Thread Heinz Strunk
Hey, both are actually pretty good approaches I think but I was hoping I could use that could use error_messages_for for the text_field_tag... that's probably not the case? If I was using "if not_good(params..." I'd need to display it differently. It'd be extremly handy if I could just add an

[Rails] Re: How can I validate a text_field_tag?

2009-03-17 Thread tony
you could also try...@record.is_valid? which will validate w/o saving On Mar 17, 11:00 am, Frederick Cheung wrote: > On Mar 17, 5:24 pm, Heinz Strunk > wrote:> Hey people, > > > I was wondering whether it's possible to validate a text_field_tag which > > has nothing to do with the actual objec

[Rails] ActionMailer works for gmail/yahoo, but not for other email addresses...HELP!

2009-03-17 Thread tony
I have a rails app that can send emails to gmail, yahoo accounts. But when it comes to more obscure accounts like em...@my-app.com or em...@blah.edu, the mail never arrives even though the log shows that the email was sent. Any ideas why this may be happening? I have sent an email directly thro

[Rails] Re: HowTo install plugins from github?

2009-03-17 Thread MarkD
Is there a difference between ruby script/plugin install git://... and git clone git://... Does the former do more than copy files into the vendors/plugins directory? Is the latter safe? Thanks, MarkD --~--~-~--~~~---~--~~ You received this message because yo

[Rails] Re: Why does default scope break the #new method?

2009-03-17 Thread Rick Bradley
Fwiw, I'm seeing similar things even on 2.3.2, with slightly different default_scopes: default_scope :conditions => ["played_on < ?", Time.now] leads to: undefined method `played_on < ?=' for # (when Game.new is called) when I call Game.new Best, Rick (and, yes, I know Time.now isn't g

[Rails] Re: Integration with LinkedIn.

2009-03-17 Thread M. Edward (Ed) Borasky
On Tue, Mar 17, 2009 at 11:32 AM, Robert Walker wrote: > > Tushar Gandhi wrote: >> Hi, >>    I want to integrate my application with LinkedIn. Is anyone knows How >> to do that in ROR? >> >> Thanks, >> Tushar > > http://www.linkedin.com/static?key=developers_widgets&trk=hb_ft_widgets > http://www

[Rails] Re: Lin_to_remote and update a text area

2009-03-17 Thread Shandy Nantz
> render :text => "This is new line" You could say: render :inline => "<%= text_field 'test', 'name' %>" This would just re-populate the div you are trying to update with the above helper code. -S -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~

[Rails] rails 2.3.2 ActiveResource fieldnames uncamelizing

2009-03-17 Thread stewbawka
I'm having some major issues with the new veresion of rails.. I have some activeresource models that connect to tables that don't follow the rails naming conventions.. when i try to access an object or hash via active resource it uncamelizes all the fieldnames / hash keys (ie: CustomerID becomes

[Rails] Re: How can I validate a text_field_tag?

2009-03-17 Thread Shandy Nantz
Heinz Strunk wrote: > Hey people, > > I was wondering whether it's possible to validate a text_field_tag which > has nothing to do with the actual object being created? > > Thanks What about JavaScript? For example, I call a Vlaidation method onsubmit with a form when somebody creates a new ob

[Rails] Re: Upload image to MySQL

2009-03-17 Thread Shandy Nantz
your web server cannot bypass Rails and efficiently serve the > image! I admit that I am by no means a database expert but I implemented this about two weeks ago and have had no problems (so far). Here is what I did. First my field in the adatabase I declared as a bytea (Byte Array). I tried

[Rails] Disabel "pluralize_table_names" in Rails 2.3.2

2009-03-17 Thread Fresh Mix
What is it in Rails 2.3.2? ActiveRecord::Base.pluralize_table_names = false -- 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 gro

[Rails] validates_presence_of

2009-03-17 Thread Shuaib85
Hi all I want to check the presence of either one of two fields for instance, phone number or mobile number, if either one presents, allow the submission of the form validates_presence_of :phone, OR :mobile any idea how to do it --~--~-~--~~~---~--~~ You received

[Rails] Re: validates_presence_of

2009-03-17 Thread Robby Russell
Another option is to have an association for different types of phones so that you can allow people to add as many as they need (and classify if it's mobile, work, home, etc.) On Tue, Mar 17, 2009 at 1:49 PM, Shuaib85 wrote: > > Hi all > > I am wondering of how to use validates_presence_of in ca

[Rails] Re: validates_presence_of

2009-03-17 Thread Philip Hallstrom
> I am wondering of how to use validates_presence_of in case I want to > check either one of the field is present > > for example > validates_presence_of :phone_number, mobile_number > > I want to check if either one presents, it accepts the request. How > can we do that One way... validates_pre

[Rails] Re: Segment error loading rails

2009-03-17 Thread Chris Cann
Conrad Taylor wrote: > On Sat, Mar 14, 2009 at 6:17 PM, Chris Cann < > rails-mailing-l...@andreas-s.net> wrote: > >> Step 3. Download the latest version of rubygems, 1.3.1 in my case. >> > > Actually, rubygems comes with ruby 1.9.1. Thus, it's not a seperate > install as it was in previous rele

[Rails] Re: Upload image to MySQL

2009-03-17 Thread Phlip
Fresh Mix wrote: > Need simple sample, how to upload image in to MySQL database (in BLOB) That's one of the big "Don'ts!" among the "Do's and Don't's of Websites". There are many, many reasons not to put images into your database. The very least of which - your web server cannot bypass Rails an

[Rails] validates_presence_of

2009-03-17 Thread Shuaib85
Hi all I am wondering of how to use validates_presence_of in case I want to check either one of the field is present for example validates_presence_of :phone_number, mobile_number I want to check if either one presents, it accepts the request. How can we do that thanks --~--~-~--~

[Rails] Re: Segment error loading rails

2009-03-17 Thread Chris Cann
Conrad Taylor wrote: > On Sat, Mar 14, 2009 at 6:17 PM, Chris Cann < > rails-mailing-l...@andreas-s.net> wrote: > >> Step 3. Download the latest version of rubygems, 1.3.1 in my case. >> > > Actually, rubygems comes with ruby 1.9.1. Thus, it's not a seperate > install as it was in previous rele

[Rails] Upload image to MySQL

2009-03-17 Thread Fresh Mix
Need simple sample, how to upload image in to MySQL database (in BLOB) Rails 2.2.2 -- 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 t

[Rails] Re: How to truncate a table from a rake file

2009-03-17 Thread Chris Gunnels
Conrad Taylor wrote: > On Tue, Mar 17, 2009 at 12:36 PM, Chris Gunnels < > rails-mailing-l...@andreas-s.net> wrote: > >> >> I am new to rails and want to figure out the syntax for truncating a >> table using a rake file. Any ideas? thanks in advance! > > > Hi, what do you mean truncate a table?

[Rails] Re: Rails 2.3, restful_authentication, and passenger

2009-03-17 Thread yaphi
That's the funny part. I get no errors it just spits me back to the login screen. I'm digging into it now and hopefully I find something. On Mar 17, 3:53 pm, Conrad Taylor wrote: > On Tue, Mar 17, 2009 at 12:48 PM, yaphi wrote: > > > Yeah it works when I run script/server which is using mongrel

[Rails] Re: Segment error loading rails

2009-03-17 Thread Conrad Taylor
On Sat, Mar 14, 2009 at 6:17 PM, Chris Cann < rails-mailing-l...@andreas-s.net> wrote: > > I have found the solution for setting up a Ruby 1.9.1 environment with > rails alongside another ruby and rails environment in a Windows Vista > environment. > > Step 1. Download the Ruby 1.9.1 binaries for

[Rails] Re: Rails 2.3, restful_authentication, and passenger

2009-03-17 Thread Conrad Taylor
On Tue, Mar 17, 2009 at 12:48 PM, yaphi wrote: > > Yeah it works when I run script/server which is using mongrel I guess? > Won't work with my local passenger install. I'll just wait a while > maybe there's something that changed. > > > On Mar 17, 3:40 pm, Conrad Taylor wrote: > > On Tue, Mar 17

[Rails] Re: Segment error loading rails

2009-03-17 Thread Chris Cann
I have battled with all sorts of problems over the last 2 days and almost thought I was there last night when I managed to create a rails 2.3.2 project with ruby 1.9.1 but the mysql driver came up an error saying it was the wrong version. It seems from research this is a major problem and that

[Rails] Re: How to truncate a table from a rake file

2009-03-17 Thread Conrad Taylor
On Tue, Mar 17, 2009 at 12:36 PM, Chris Gunnels < rails-mailing-l...@andreas-s.net> wrote: > > I am new to rails and want to figure out the syntax for truncating a > table using a rake file. Any ideas? thanks in advance! Hi, what do you mean truncate a table? Do you mean delete the contents of

[Rails] Re: Rails 2.3, restful_authentication, and passenger

2009-03-17 Thread yaphi
Yeah it works when I run script/server which is using mongrel I guess? Won't work with my local passenger install. I'll just wait a while maybe there's something that changed. On Mar 17, 3:40 pm, Conrad Taylor wrote: > On Tue, Mar 17, 2009 at 12:09 PM, yaphi wrote: > > > Yup. I did that, upgra

[Rails] Re: Rails 2.3, restful_authentication, and passenger

2009-03-17 Thread Conrad Taylor
On Tue, Mar 17, 2009 at 12:09 PM, yaphi wrote: > > Yup. I did that, upgraded to Passenger 2.1.2 (which Rails 2.3 > required) > > On Mar 17, 3:05 pm, Conrad Taylor wrote: > > On Tue, Mar 17, 2009 at 5:03 AM, yaphi wrote: > > > > > I can no longer login using the latest passenger + Rails 2.3 with

[Rails] How to truncate a table from a rake file

2009-03-17 Thread Chris Gunnels
I am new to rails and want to figure out the syntax for truncating a table using a rake file. Any ideas? thanks in advance! -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "R

[Rails] [ANN/ADV] Ruby training in Atlanta: bring a friend for 1/2 price!

2009-03-17 Thread David A. Black
Hi all -- You can now sign up for Ruby training in Atlanta, April 1-3, and add a friend for half price! Just go to: http://entp.eventwax.com/ruby-training-atlanta/register and use the promo code "friend". Purchase ONE ticket at the "You plus friend" price of $2100 (that's $1400 * 1.5), an

[Rails] Re: Rails 2.3, restful_authentication, and passenger

2009-03-17 Thread yaphi
Yup. I did that, upgraded to Passenger 2.1.2 (which Rails 2.3 required) On Mar 17, 3:05 pm, Conrad Taylor wrote: > On Tue, Mar 17, 2009 at 5:03 AM, yaphi wrote: > > > I can no longer login using the latest passenger + Rails 2.3 with the > > restful_authentication plugin. If I run a quick "scrip

[Rails] Re: Rails 2.3, restful_authentication, and passenger

2009-03-17 Thread Conrad Taylor
On Tue, Mar 17, 2009 at 5:03 AM, yaphi wrote: > > I can no longer login using the latest passenger + Rails 2.3 with the > restful_authentication plugin. If I run a quick "script/server" > everything is fine. Anyone else having trouble with this? Hi, did you update your project configuration fil

[Rails] Just how many rails installations?

2009-03-17 Thread Pguy Sain
Just a totally off the bat question - is there any reasonable guesstimate on the total number of rails installations across the web serving world? I was curious to see how fast rail has grown and its tipping point. Any help/thoughts would be appreciated. Thanks! -- Posted via http://www.ruby-for

[Rails] Re: Stop rendering a response in the default layout

2009-03-17 Thread tashfeen.ekram
here is specifically what i get in my firefox debug window: syntax error wrote: > here is the js that i am using for the request. does it not make a js > request?http://pastie.org/418937 > > here is my controller: > > http://pastie.org/418941 > > then i am using create.js.erb for the response...

[Rails] Re: Stop rendering a response in the default layout

2009-03-17 Thread tashfeen.ekram
i am using rails 2.3.0. On Mar 17, 1:52 pm, "tashfeen.ekram" wrote: > here is the js that i am using for the request. does it not make a js > request?http://pastie.org/418937 > > here is my controller: > > http://pastie.org/418941 > > then i am using create.js.erb for the response... > > On Mar

[Rails] Re: Integration with LinkedIn.

2009-03-17 Thread Robert Walker
Tushar Gandhi wrote: > Hi, >I want to integrate my application with LinkedIn. Is anyone knows How > to do that in ROR? > > Thanks, > Tushar http://www.linkedin.com/static?key=developers_widgets&trk=hb_ft_widgets http://www.linkedin.com/static?key=developers_apis -- Posted via http://www.rub

[Rails] Re: OpenSSL::Cipher decrypt returns 'wrong final block length'

2009-03-17 Thread Mike Cook
Hey there... well... took a while but I got it to work by going through some code with a colleague and translating it to Ruby. The CTS cipher is now being deciphered using CBC. I hope this helps some other folks in Ruby land. Please suggest some ways to better document the steps. Take care,

[Rails] Re: How can I validate a text_field_tag?

2009-03-17 Thread Frederick Cheung
On Mar 17, 5:24 pm, Heinz Strunk wrote: > Hey people, > > I was wondering whether it's possible to validate a text_field_tag which > has nothing to do with the actual object being created? > validations are by definition a model centric thing. However there's nothing stopping you doing if not_g

[Rails] Re: Stop rendering a response in the default layout

2009-03-17 Thread tashfeen.ekram
here is the js that i am using for the request. does it not make a js request? http://pastie.org/418937 here is my controller: http://pastie.org/418941 then i am using create.js.erb for the response... On Mar 17, 11:21 am, "ruby...@ymail.com" wrote: > On 17 Mar., 16:10, "tashfeen.ekram" wro

[Rails] How can I validate a text_field_tag?

2009-03-17 Thread Heinz Strunk
Hey people, I was wondering whether it's possible to validate a text_field_tag which has nothing to do with the actual object being created? Thanks -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscrib

[Rails] Re: Refactoring module

2009-03-17 Thread Ar Chron
(Without repeating the example definitions from the previous post) > For module SX3, is the class Tasklist, Request and Dictionary can call > method_1-3? > The inheritance hierarchy for Tasklist is: Tasklist < RemoteSX3Model < GenericModel < ActiveRecord::Base This class can use methods defi

[Rails] Re: onsubmit for remote_form_for not working properly

2009-03-17 Thread Frederick Cheung
On Mar 17, 4:17 pm, Salil Gaikwad wrote: > > No, remote_form_for will use the onsubmit event to make the actual > > AJAX request. So I don't think overriding the onsubmit attribute would > > be a good idea... :) > > thanx @David. > Do you know what should do in that case to put javascript form

[Rails] Re: Refactoring module

2009-03-17 Thread Valentino Lun
Ar Chron wrote: > RemoteModel is declared an abstract_class. When RemoteSX3Model (or 4 or > 5 - your 'concrete' classes) inherits from RemoteModel, those classes > don't need to define the methods already present in RemoteModel (unless > they are overriding the definition), and you get a singl

[Rails] Re: onsubmit for remote_form_for not working properly

2009-03-17 Thread Salil Gaikwad
> No, remote_form_for will use the onsubmit event to make the actual > AJAX request. So I don't think overriding the onsubmit attribute would > be a good idea... :) > thanx @David. Do you know what should do in that case to put javascript form validations? Thanx & Regards Salil -- Posted vi

[Rails] Re: how to create an association through a Drag & Drop

2009-03-17 Thread Frederick Cheung
On Mar 17, 3:28 pm, Sacredceltic wrote: > > It drops OK, but : > 1) The problem is, the ":with" parameter takes only one key. How do I > convey the second one ? It doesn't seem to accept a hash... There's some examples of the usage of :with here: http://www.spacevatican.org/2008/5/17/with-or-w

[Rails] Re: Refactoring module

2009-03-17 Thread Ar Chron
Sorry, what MaD and I were hinting at was something more along the lines of: ActiveRecord > RemoteModel > RemoteSX(n)Model where all the common things (like the readonly? and the find_incomplete_tasklist methods, or any new common methods) are defined in the RemoteModel class RemoteModel is

[Rails] Re: Rails loads wrong files

2009-03-17 Thread Robert Walker
Mike Just wrote: > 2) The Editor saves backup files from the last version of the file with > extension .bak, like (xxx.html.erb.bak): > /rails_apps/coconut/app/views/flights/show.html.erb.bak I have no idea why Rails is trying to use your backup files. Maybe it sees the "html.erb" and ignores th

[Rails] Re: installed ruby ver 1.9 but not working with rails 2.3.2

2009-03-17 Thread Greg Donald
2009/3/17 "Wolas!" : > When you followed gregs advice you ended up sort of "fooling" the ruby > command. now you have two of everything (2 rails gems, one under 1.8 > and one under 1.9). There's no such thing as a "ruby command" (at least not in my shell). There is a ruby binary, and there's a pa

[Rails] Re: How to create a simple loop counter

2009-03-17 Thread Nish Patel
Thank you for your help, that works fine now!! -- 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: How to create a simple loop counter

2009-03-17 Thread ruby...@ymail.com
On 17 Mar., 16:33, Nish Patel wrote: > ruby...@ymail.com wrote: > > On 17 Mar., 16:28, "ruby...@ymail.com" wrote: > > >> > > Thank you clever people > > >> > Assuming the name of your model is Item, you can do it this way: > > >> > Enquries Today: <%= Item.count %> > > >> > Just replace "I

[Rails] Re: How to create a simple loop counter

2009-03-17 Thread Nish Patel
ruby...@ymail.com wrote: > On 17 Mar., 16:28, "ruby...@ymail.com" wrote: >> >> > > Thank you clever people >> >> > Assuming the name of your model is Item, you can do it this way: >> >> > Enquries Today: <%= Item.count %> >> >> > Just replace "Item" with whatever your model is called. #count

[Rails] Re: Nested serialization with to_json and to_xml with array and hash element

2009-03-17 Thread scho
Hi Folks, I ran into the same problem. Here is my fix, which solved the problem (I've added it to my environment.rb): module ActiveRecord module Serialization class Serializer def add_includes_with_nested_include(&block) if include_associations = options.delete(:include)

[Rails] Re: installed ruby ver 1.9 but not working with rails 2.3.2

2009-03-17 Thread Nerdaniel
sudo gem19 install rails? On Mar 17, 6:21 am, "\"Wolas!\"" wrote: > When you followed gregs advice you ended up sort of "fooling" the ruby > command. now you have two of everything (2 rails gems, one under 1.8 > and one under 1.9). > > make sure you are calling the correct gem from the correct p

[Rails] Re: How to create a simple loop counter

2009-03-17 Thread ruby...@ymail.com
On 17 Mar., 16:28, "ruby...@ymail.com" wrote: > On 17 Mar., 16:27, "ruby...@ymail.com" wrote: > > > > > > > On 17 Mar., 16:05, Nish Patel > > wrote: > > > > Hi all, > > > >      as you may have gathered I am a newbie to rails and programming. I > > > want to count the number of enquiries in t

[Rails] Re: How to create a simple loop counter

2009-03-17 Thread ruby...@ymail.com
On 17 Mar., 16:27, "ruby...@ymail.com" wrote: > On 17 Mar., 16:05, Nish Patel > wrote: > > > Hi all, > > >      as you may have gathered I am a newbie to rails and programming. I > > want to count the number of enquiries in the database and produce it as > > a number in the view preferably in

[Rails] how to create an association through a Drag & Drop

2009-03-17 Thread Sacredceltic
I have 3 tables A, B and C Table A has_many Cs Table B has_many Cs so C contains 2 foreign keys, A_id and B_id) I have a screen with 2 lists : A list and B list I would like to be able to create a C record by simply dropping an A element on a B element I tried this : <% for A in @As %>

[Rails] Re: How to create a simple loop counter

2009-03-17 Thread ruby...@ymail.com
On 17 Mar., 16:05, Nish Patel wrote: > Hi all, > >      as you may have gathered I am a newbie to rails and programming. I > want to count the number of enquiries in the database and produce it as > a number in the view preferably in the index page. All I want is the > number of items in the da

[Rails] Re: Stop rendering a response in the default layout

2009-03-17 Thread ruby...@ymail.com
On 17 Mar., 16:10, "tashfeen.ekram" wrote: > I am trying to follow this tutorial here by Ryan > :http://railscasts.com/episodes/136-jquery > > it is a AJAX tutorial on using jquery and expecting the response to be > in the form of javascript that will be acted upon by the browser. > however, i

  1   2   >