Re: [Rails] Facebook like page Count

2010-11-25 Thread rajeevsharma86
Thanks for help but i ca't under stand this one On Fri, Nov 26, 2010 at 12:51 PM, Abhishek shukla wrote: > hey Ashu, > you can visit the following website. I don't know how useful the site for > you, but take a look. > > > http://developer.practicalecommerce.com/articles/1857-Two-Easy-Ways-to-Ad

Re: [Rails] Facebook like page Count

2010-11-25 Thread Abhishek shukla
hey Ashu, you can visit the following website. I don't know how useful the site for you, but take a look. http://developer.practicalecommerce.com/articles/1857-Two-Easy-Ways-to-Add-the-Facebook-Like-Button-to-Product-Detail-Pages Thanks Abhis On Fri, Nov 26, 2010 at 12:45 PM, ashu wrote: > He

[Rails] Facebook like page Count

2010-11-25 Thread ashu
Hello everyone i am not using any gem/plugin for Facebook. i am giving Facebook like button on my page. and i need to know that users clicked on like or not . i don't know how to get a parameter of fb_click_count . can any one help me on this please suggest Thanks in advance :

Re: [Rails] help: using cucumber ruby

2010-11-25 Thread Abhishek shukla
hey irfan, as mentioned by @brian Cucumber wiki itself is a good source to get started with it. and there are couple of good blogs available who are talking about it. Thanks abhis On Fri, Nov 26, 2010 at 7:43 AM, Irfan Ahmed wrote: > Thanks Brian, > Yes, this is not an answerable question but

[Rails] Cucumber + Capybara + tiny_mce Problem

2010-11-25 Thread Abhishek shukla
Hello I want to test the the tiny_mce using cucumber and capybara and I got a solution in the following thred " http://groups.google.com/group/ruby-capybara/browse_thread/thread/711d08ddceb9276?pli=1"; but somehow I am getting the following error *private method `bridge' called for # (NoMethodErr

Re: [Rails] Re: render :partial with :collection

2010-11-25 Thread Abhishek shukla
hey Vineeth, As mentioned by others about understand the concept of partial first thats true. But the collection object can be accessable by the name of partial in you case you can access using "<%= form.attribute_name %>" <%= "render :partial => '/comment/form', :collection=>@blog.comments" %>

[Rails] db connection pool in Rails 2.3.x

2010-11-25 Thread Prachi Tripathi
Any idea how to set db connection "idle timeout" and "min. number of connections" when configuring connection pool in Rails 2.3.x? These settings are required since we want the db connection pool to warm up at application/server startup. Required for a heavy usage website. We are using JRuby and f

[Rails] Re: render :partial with :collection

2010-11-25 Thread Vineeth Pradhan
"Виталий Янчук" wrote in post #963883: > Yes, you would better read about that. > But I will answer, in partial you would be able to access to the item by > accessing variable named by the name of the partial, in your case "form" > > On Thu, Nov 25, 2010 at 2:03 PM, Colin Law > wrote: > >> Colin

[Rails] Re: How to create a mail service like gmail using ror

2010-11-25 Thread venkata reddy
Sorry Brain, Actually i am a bit new to the development side. and new to ror as well.but i want to learn Ruby on Rails and start my web development. i want to build a real time application while learning..can u guide me pls... On Nov 25, 8:25 pm, Brian Troutwine wrote: > You're being ripped on be

[Rails] Re: Can't run tests...illegal switch in RUBYOPT: -F (RuntimeError)

2010-11-25 Thread daze
Thanks to this guy here ... http://pledgie.com/campaigns/14034? (you should donate! thorough rails 3 documentation would be great!) ...I came to an answer. My problem was that I'm on Windows, and I installed ruby in the program files directory. big mistake. the "F" is getting interpreted beca

Re: [Rails] help: using cucumber ruby

2010-11-25 Thread Irfan Ahmed
Thanks Brian, Yes, this is not an answerable question but I have to learn about cucumber only for rails, last night I have installed it! On Fri, Nov 26, 2010 at 7:47 AM, Brian Troutwine wrote: > > is there anybody knows about cucumber and some good resources about > learning > > cucumber to us

Re: [Rails] help: using cucumber ruby

2010-11-25 Thread Brian Troutwine
> is there anybody knows about cucumber and some good resources about learning > cucumber to use it ruby? The RSpec Book by David Chelimsky is an excellent introduction. The cucumber wiki is, itself, a good source of information, though you'll rather spend a lot of time piecing together a coherent

[Rails] Re: sanitizing HAML formatted user input

2010-11-25 Thread aperture science
My solution: users_controller.rb: def self @users = User.all @user = User.find_by_name(params[:name]) @name = User.all(params[:name]) if @user @haml = User.find_by_name(params[:name]).userinput end end self.html.haml: = sanitize Haml::Engine.new(@haml).render(self)

[Rails] MediaTags - exporting m4a, id3, exiv, etc as YAML (JSON)

2010-11-25 Thread CoolAJ86
I'm sponsoring the development of cross-platform (C/C++) utilities for extracting a variety of media meta-data as JSON, including stream checksums and stream meta-data. git://github.com/coolaj86/mtags.git I'd like to get support for developing this, and I'm interested in the opinions of others w

[Rails] Re: q: remote_form_for hits always to create

2010-11-25 Thread tom
ok, without :html=>{ is working just using :method direclty On Thu, Nov 25, 2010 at 5:30 PM, tom wrote: > hi, > > i used to have a index file with a partial. that partial holds a > searchform, until now with a regular form_for / post towards the parent > index action. the results were only

[Rails] q: remote_form_for hits always to create

2010-11-25 Thread tom
hi, i used to have a index file with a partial. that partial holds a searchform, until now with a regular form_for / post towards the parent index action. the results were only be fetched / displayed if certain conditions are true. this is all working fine. Now im trying to get the remote_form_fo

[Rails] Fun with Routing Errors

2010-11-25 Thread Ben Woodall
I'm at a complete loss. I can get to new and edit and when I submit the new post or submit the edit, i'll get: Routing Error No route matches "/knodes/new" or Routing Error No route matches "/knodes/1/edit" Here's the controller: class KnodesController < ApplicationController before_filter

[Rails] Re: has_many :through - additional attribute

2010-11-25 Thread Markus Zm
Thanks! I will change the attribute name. But do I have to go via user/company.responsibles or could I also access the additional 'type' attribute via via user.companies or company.users after the creation of a new record using user.companies << company -- Posted via http://www.ruby-forum.com

Re: [Rails] has_many :through - additional attribute

2010-11-25 Thread Colin Law
On 25 November 2010 20:10, Markus Zm wrote: > Hi, > > I'm wondering how to write or read an additional attribute in the > through table. > Beside the foreign key, I have in the 'Responsible' table an additional > data field 'type' to set the kind of 'responsibility' for the company. Don't use 'ty

[Rails] has_many :through - additional attribute

2010-11-25 Thread Markus Zm
Hi, I'm wondering how to write or read an additional attribute in the through table. Beside the foreign key, I have in the 'Responsible' table an additional data field 'type' to set the kind of 'responsibility' for the company. Can I access it from the user or company model? class User < ActiveRe

[Rails] help: using cucumber ruby

2010-11-25 Thread Irfan Ahmed
is there anybody knows about cucumber and some good resources about learning cucumber to use it ruby? is it best for testing? -- Thanks, Irfan Ahmed Rizvi http://www.welltreat.us +880 1676 246 991 +880 1723 712 288u -- You received this message because you are subscribed to the Google Group

[Rails] Re: Creating a Secure ID/UID for a Password, token authentication type system

2010-11-25 Thread Frederick Cheung
On Nov 25, 4:53 pm, CuriousNewbie wrote: > Hello, I'm looking for a way to create a very secure UID that will act > as a authentication token. > > I had been using the UUID gem but learned they are not secure. I'd > like to learn what to use. What is the method of choice these days in > ruby/rai

[Rails] Re: Re: Re: no such file to load -- sqlite3 WITH mysql2

2010-11-25 Thread Steve Mills
Luciano Sousa wrote in post #963876: > post your rake db:migrate --trace... Done. http://pastie.org/1325873 Kind Regards Steve -- 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

[Rails] Creating a Secure ID/UID for a Password, token authentication type system

2010-11-25 Thread CuriousNewbie
Hello, I'm looking for a way to create a very secure UID that will act as a authentication token. I had been using the UUID gem but learned they are not secure. I'd like to learn what to use. What is the method of choice these days in ruby/rails 3? -- You received this message because you are su

[Rails] Re: Devise sessions and load-balanced/multiple servers

2010-11-25 Thread CU
As I said I'm using Devise for authentication, with a stock-standard installation and no overrides of any of the methods. On Nov 25, 3:44 pm, Julian Leviston wrote: > This is a bit too hard to debug over email. I could help more directly, but > it sounds like it's probably some kind of issue wit

Re: [Rails] How to create a mail service like gmail using ror

2010-11-25 Thread Brian Troutwine
You're being ripped on because your question is a bad one. Let's break down your original post: I want to create a mail service A bit of a vague start. Presumably you're not going to be asking a web-dev centered mailing list for advice on how to run a brick and mortar postal service, so by "

Re: [Rails] How to create a mail service like gmail using ror

2010-11-25 Thread Peter Hickman
What is it you actually want to create? The mail server infrastructure that sends, receives and stores email for millions of users or perhaps the dinky little web interface? How much do you actually know about email? Do you understand POP, IMAP, SMTP? Have you read the many RFCs covering all aspec

[Rails] Re: Legacy databases

2010-11-25 Thread Gustavo de Sá Carvalho Honorato
Actually, decl_auth guys told me that the problem is not with decl_auth. I think the problem could be with nested attributes. Anyone has a clue of what is this problem? 2010/11/25 Gustavo de Sá Carvalho Honorato > Hi, > > I'm experiencing problems with decl_auth when using a database with users

[Rails] Legacy databases

2010-11-25 Thread Gustavo de Sá Carvalho Honorato
Hi, I'm experiencing problems with decl_auth when using a database with users table and columns names different from default. When I try to register an new user using the register form, I got the following error: * * * ActiveRecord::RecordNotFound in UsersController#create Couldn't find Role wi

[Rails] rails 3 render update mce

2010-11-25 Thread Me
Migrating our app to rails 3 with a render :update with mce. It throws the JS try error to the screen. If I put the mce command into firebug it works fine. suggestions? render :update do |page| page << "tinyMCE.execCommand('mceInsertContent',false,'m');" end -- You received this

Re: [Rails] How to create a mail service like gmail using ror

2010-11-25 Thread shyam
Hi.. all Never mind...u all.. This is so innocent question... we all here to help each other Not to pull other's legs.. Please relies the felling... If some body has exp.. to build.. or faced same problem like above .. Please help him... Thanks and regards, Shyam Mohan Ruby on rails develo

Re: [Rails] How to create a mail service like gmail using ror

2010-11-25 Thread Виталий Янчук
There is nothing impossible, start with 4 steps 1. buy a domain 2. install rails 3. write your gmail 4. deploy it to server On Thu, Nov 25, 2010 at 3:54 PM, Julian Leviston wrote: > This answer wins! > > Personally I really have a hard time understanding how people can have the > nerve to ask the

Re: [Rails] How to create a mail service like gmail using ror

2010-11-25 Thread Julian Leviston
This answer wins! Personally I really have a hard time understanding how people can have the nerve to ask these questions... Do you seriously not realize how difficult it is to build something like gmail?? Sent from my iPad On 26/11/2010, at 12:25 AM, rajeevsharma86 wrote: > you have to make

Re: [Rails] render :partial with :collection

2010-11-25 Thread Виталий Янчук
Yes, you would better read about that. But I will answer, in partial you would be able to access to the item by accessing variable named by the name of the partial, in your case "form" On Thu, Nov 25, 2010 at 2:03 PM, Colin Law wrote: > On 25 November 2010 11:59, Vineeth Pradhan wrote: > > Hell

Re: [Rails] Re: Devise sessions and load-balanced/multiple servers

2010-11-25 Thread Julian Leviston
This is a bit too hard to debug over email. I could help more directly, but it sounds like it's probably some kind of issue with your authorisation code. Could you paste aoropriate bits? Sent from my iPad On 25/11/2010, at 10:00 PM, CU wrote: > Cookie is definitely being sent through and rece

[Rails] Re: incompatible character encodings: ASCII-8BIT and UTF-8

2010-11-25 Thread Robert K.
Hallo, I face a similar problem, but here mentioned solutions seem to not work. When I try to display string with non-ascii chars from a mysql database in form, sometimes the program stops with the 'incompatible character encodings: ASCII-8BIT' error. This issue appears only at some fileds in a ta

Re: [Rails] How to create a mail service like gmail using ror

2010-11-25 Thread rajeevsharma86
you have to make Google.com first for that :) On Thu, Nov 25, 2010 at 5:49 PM, venkata reddy wrote: > I want to create a mail service like gmail using ruby on > railswhere should i start and how can i proceed? > > -- > You received this message because you are subscribed to the Google Groups

Re: [Rails] Want to learn Ruby as web programming language

2010-11-25 Thread rajeevsharma86
sorry its not for you with ruby its self has best book in it On Thu, Nov 25, 2010 at 6:52 PM, rajeevsharma86 wrote: > > http://www.makeuseof.com/tag/10-websites-beginner-programmer-sample-code-snippets/ > > > On Thu, Nov 25, 2010 at 6:04 PM, Peter Parker wrote: > >> Hi >> >> Actually I am interes

Re: [Rails] Want to learn Ruby as web programming language

2010-11-25 Thread rajeevsharma86
http://www.makeuseof.com/tag/10-websites-beginner-programmer-sample-code-snippets/ On Thu, Nov 25, 2010 at 6:04 PM, Peter Parker wrote: > Hi > > Actually I am interested in learning ruby as a web programming language. > Please suggest me some easy to learn tutorials specifically for ruby web > p

[Rails] Want to learn Ruby as web programming language

2010-11-25 Thread Peter Parker
Hi Actually I am interested in learning ruby as a web programming language. Please suggest me some easy to learn tutorials specifically for ruby web programming. Many thanks PS: I am on ubuntu 9.04 with apache 2.2 -- Posted via http://www.ruby-forum.com/. -- You received this message becaus

[Rails] How to create a mail service like gmail using ror

2010-11-25 Thread venkata reddy
I want to create a mail service like gmail using ruby on railswhere should i start and how can i proceed? -- 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 unsub

Re: [Rails] render :partial with :collection

2010-11-25 Thread Colin Law
On 25 November 2010 11:59, Vineeth Pradhan wrote: > Hello, > > How does the "render :partial => '/comment/form', > :collection=>@blog.comments" work? What object does this pass to the > partial view? How do I access the comment object in partial view? Have a look at the Rails Guide on Layouts and

[Rails] render :partial with :collection

2010-11-25 Thread Vineeth Pradhan
Hello, How does the "render :partial => '/comment/form', :collection=>@blog.comments" work? What object does this pass to the partial view? How do I access the comment object in partial view? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to t

[Rails] Re: Devise sessions and load-balanced/multiple servers

2010-11-25 Thread CU
Cookie is definitely being sent through and received. Far as I can see, Devise performs the confirmation and redirects to the correct place, but for some reason, then flags request as unauthorised and shunts it to the login screen again. I'm just not sure why this would be different on a cluster as

Re: [Rails] Devise sessions and load-balanced/multiple servers

2010-11-25 Thread Julian Leviston
Does your proxy send thru the cookie? Some proxy balancers have issues with not sending the cookie through, so obviously the correct session can't be set. You can verify that this is the case by logging the session and tailing the logs as the app is used. Sent from my iPad On 25/11/2010, at 8

[Rails] Devise sessions and load-balanced/multiple servers

2010-11-25 Thread CU
Hi Hoping someone has had experience with this or can tell me where to start investigating. I've got a Rails app with Devise authentication running on a server cluster behind a load balancer, so requests to the website will alternately hit one server, or the other. My problem occurs when I try to

Re: [Rails] How to map Excel sheet data to my applicatioin in ruby.

2010-11-25 Thread Colin Law
On 25 November 2010 08:24, chowdary wrote: > Excel sheet having  : > Firstname   Lastname > venkat      patchava > > How to map Excel sheet data to my applicatioin in ruby. > Firstname :   venkat > Lastname  :   patchava Do you mean that you want Rails to read directly from the spreadsheet (in wh

[Rails] Re: NoMethodError

2010-11-25 Thread Fallen Phoenix
Hi Juan, In the new action in your controller, do you have it creating an actual @appointment object? For example: class AppointmentsController < ApplicationController # ... other stuff here, before filters, etc. def new @appointment = Appointment.new # do you have this? end end My th

[Rails] [Call for speakers] ConFoo / Ruby conference

2010-11-25 Thread Sylvain
Hi, I am part of Montreal's Confoo Web techno conference. A conference centered with web technologies organized by a few non-profit user groups from Montreal, such as Ruby Montreal (http:// www.montrealonrails.com), W3QC, PHP Quebec, Python Montreal and Montreal JUG. The Conference will take plac

[Rails] Re: How to map Excel sheet data to my applicatioin in ruby.

2010-11-25 Thread Fallen Phoenix
Hey there chowdary, You can try the spreadsheet gem. I've used it myself in a couple projects "back in the day" and it can read and write Excel spreadsheets, and help you work with the data therein a bit more easily. http://rubygems.org/gems/spreadsheet The basic guide should be enough to hopef

[Rails] NoMethodError

2010-11-25 Thread Juan Gomez
hey, I am making an appointments page. It is not associated with any other model. The model validations, migrations, controllers, views, and form structure are in place but for some reason i keep getting: NoMethodError in Appointments#new Showing /Users/juangomez/Documents/Aptana Studio 3 Worksp

[Rails] Looking for strong Ruby/RoR Engineers

2010-11-25 Thread Matthew DeRossett (Executive Recruiter)
Hi Everyone! I would really like to get the word out about a couple of Opportunities I have in NYC and SF Bay Area. I would appreciate your help in locating a strong Ruby/RoR Engineer. Below I have included a description of what we are looking for. If this is you, Please send an updated resume for

[Rails] Re: foreigner plugin.

2010-11-25 Thread Phoenix Rising
Hey Dani, I haven't actually read any of the Rails recipes books, so I can't comment on this exactly, but I think I get what you're saying/asking. When you use ActiveRecord, the database abstraction and modeling system in Rails, it has a method called "execute" that you can call by: ActiveRecord

[Rails] Where should the rjs file be inserted in case of updating a child object

2010-11-25 Thread Vineeth Pradhan
Hello, I have a BlogPost objects' 'show' page where I insert new comments. Both BlogPost and comment have two separate resources. This in my 'route.rb' file looks like this map.resources blog_posts, :has_many => :comments So, 'comments' is a child of 'blog_posts'. So, in BlogPost 'show' page

[Rails] How to map Excel sheet data to my applicatioin in ruby.

2010-11-25 Thread chowdary
Excel sheet having : Firstname Lastname venkat patchava How to map Excel sheet data to my applicatioin in ruby. Firstname : venkat Lastname : patchava Plaase help me in ASAP. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.