Re: [Rails] ERROR: Run

2011-09-19 Thread Rajarshi
The main problem is that you app does not get the rails which u installed so check environments fles also On Tue, Sep 20, 2011 at 12:22 PM, Tsolmon Narantsogt wrote: > hmm cannot. but thanks. > > Do you have a another idea ? > > > On Tue, Sep 20, 2011 at 2:46 PM, Rajarshi wrote: > >> uninstall r

Re: [Rails] ERROR: Run

2011-09-19 Thread Tsolmon Narantsogt
hmm cannot. but thanks. Do you have a another idea ? On Tue, Sep 20, 2011 at 2:46 PM, Rajarshi wrote: > uninstall rake 0.9.2 > and install rake 0.8.7 > > Hope it will fix > > On Tue, Sep 20, 2011 at 12:12 PM, Tsolmon Narantsogt wrote: > >> Hello, >> I installed the latest ruby version (1.8.7)

[Rails] ERROR: Run

2011-09-19 Thread Tsolmon Narantsogt
Hello, I installed the latest ruby version (1.8.7) and gem version 1.3.7. Rails 2.3.5 *** LOCAL GEMS *** actionmailer (2.3.5) actionpack (2.3.5) active_support (3.0.0) activerecord (2.3.5) activeresource (2.3.5) activesupport (3.0.0, 2.3. builder (2.1.2) mysql (2.8.1 x86-mingw32) rack (1.0.1) rai

Re: [Rails] ERROR: Run

2011-09-19 Thread Rajarshi
uninstall rake 0.9.2 and install rake 0.8.7 Hope it will fix On Tue, Sep 20, 2011 at 12:12 PM, Tsolmon Narantsogt wrote: > Hello, > I installed the latest ruby version (1.8.7) and gem version 1.3.7. > Rails 2.3.5 > > *** LOCAL GEMS *** > actionmailer (2.3.5) > actionpack (2.3.5) > active_suppor

[Rails] Re: ERROR: Run

2011-09-19 Thread Tsolmon Narantsogt
On Tue, Sep 20, 2011 at 2:42 PM, Tsolmon Narantsogt wrote: > Hello, > I installed the latest ruby version (1.8.7) and gem version 1.3.7. not last version :D > Rails 2.3.5 > > *** LOCAL GEMS *** > actionmailer (2.3.5) > actionpack (2.3.5) > active_support (3.0.0) > activerecord (2.3.5) > act

[Rails] Re: ERROR: While executing gem

2011-09-19 Thread Matin
Yeah right, I've got the version 1.7.2 of gem. I'm on a Win7 64bit and I run my prompt as administrator. On 20 sep, 06:29, Rajarshi wrote: > Please type > gem -v > > and check whether rubygems exists or not > then continue > > > > > > > > On Tue, Sep 20, 2011 at 1:47 AM, Matin wrote: > > Hello,

[Rails] Re: ERROR: While executing gem

2011-09-19 Thread Matin
Yeah right. So I've got the version 1.7.2 of gem. I'm on a Win7 64bit and I run my prompt as administrator. On 19 sep, 16:17, Matin wrote: > Hello, > I installed the latest ruby version (1.9.2p290) via the rubyinstaller > (exe). > I have a Windows 7 64bits. > Installation was fine. > But I can't

Re: [Rails] Re: RUBY on Rails CMM level company does not have much employees

2011-09-19 Thread Hassan Schroeder
On Mon, Sep 19, 2011 at 10:30 PM, Rajarshi wrote: > I mean employee strength BREAKING NEWS: companies burdened with legacy commitments (and fear of change) invest more in legacy technologies. Amazing but true. Me, I'm betting on the mammals. -- Hassan Schroeder hassan

[Rails] Re: RUBY on Rails CMM level company does not have much employees

2011-09-19 Thread venkata reddy
What is a big project according to you. Something like Facebook which is built on php is a big project for you? If you think so,Tumblr is also built on PHP but failed. Then what do you say? Does it mean PHP is not scalable? On Sep 20, 10:37 am, venkata reddy wrote: > Dear Rajarshi, > You know wha

[Rails] Re: gmaps4rails "acts_as_gmappable" error

2011-09-19 Thread venkata reddy
gmaps4rails is good its working fine with rails3.0.10 and i am also using geocoder. Now i am trying to use them together. On Sep 20, 9:18 am, Rajarshi wrote: > https://github.com/rorcraft/ym4r_gm > > use it any prob let me know > > > > > > > > On Tue, Sep 20, 2011 at 9:47 AM, Rajarshi wrote: > >

[Rails] Re: RUBY on Rails CMM level company does not have much employees

2011-09-19 Thread venkata reddy
Dear Rajarshi, You know what, Microsoft is big client for TCS. Microsoft will deafinitely force TCS to use that technology and TCS has to go according to that desperitely. There are some big companies behind .net and Java, mind you. People started realizing the strength and fun of rails. It will ta

Re: [Rails] Re: RUBY on Rails CMM level company does not have much employees

2011-09-19 Thread Rajarshi
I mean employee strength .net worked more than 8 Lacs and in ror it is 50 < On Tue, Sep 20, 2011 at 10:59 AM, Rajarshi wrote: > > Dear Venkata, > > can you compare the strength of TCS in ror > and in .net > then u understand the difference > > Thnaks > > > On Tue, Sep 20, 2011 at 10:48 AM, ven

Re: [Rails] Re: RUBY on Rails CMM level company does not have much employees

2011-09-19 Thread Rajarshi
Dear Venkata, can you compare the strength of TCS in ror and in .net then u understand the difference Thnaks On Tue, Sep 20, 2011 at 10:48 AM, venkata reddy wrote: > Dear Rajarshi, >MNCs started recruiting ROR people.I heard TCS is > recruiting 3yr experience rails developer

[Rails] Re: RUBY on Rails CMM level company does not have much employees

2011-09-19 Thread venkata reddy
Dear Rajarshi, MNCs started recruiting ROR people.I heard TCS is recruiting 3yr experience rails developers. Dont think rails cannot be scalable. Its already proven technology. On Sep 20, 10:01 am, Rajarshi wrote: > Ok thanks for the information > > But You know the employee s

Re: [Rails] RUBY on Rails CMM level company does not have much employees

2011-09-19 Thread Rajarshi
Ok thanks for the information But You know the employee strength of java and .net is much more rather than ruby on rails for those companies. Because ror does not have a capability for big project On Tue, Sep 20, 2011 at 10:28 AM, Fernando Almeida < ferna...@fernandoalmeida.net> wrote: > These

Re: [Rails] RUBY on Rails CMM level company does not have much employees

2011-09-19 Thread Fernando Almeida
These companies are not freelancers http://blog.obiefernandez.com/content/2008/03/big-name-compan.html 2011/9/20 Rajarshi > I think ROR is not For a big project tools > That's why it is only use for freelance > > > > On Tue, Sep 20, 2011 at 9:52 AM, Rajarshi wrote: > >> Thnaks for our reply >>

Re: [Rails] RUBY on Rails CMM level company does not have much employees

2011-09-19 Thread Rajarshi
I think ROR is not For a big project tools That's why it is only use for freelance On Tue, Sep 20, 2011 at 9:52 AM, Rajarshi wrote: > Thnaks for our reply > > can you ask for me? > > > On Tue, Sep 20, 2011 at 2:58 AM, Hassan Schroeder < > hassan.schroe...@gmail.com> wrote: > >> On Mon, Sep 19,

Re: [Rails] ApiBuilder: XML and JSON builder in one

2011-09-19 Thread Rajarshi
thanks On Tue, Sep 20, 2011 at 2:11 AM, Lasse Bunk wrote: > I have created ApiBuilder which is a Ruby on Rails plugin/template engine > that allows for multiple formats being laid out in a single specification, > currently XML and JSON. > You lay out your spec in one file and it automatically ge

Re: [Rails] ERROR: While executing gem

2011-09-19 Thread Rajarshi
Please type gem -v and check whether rubygems exists or not then continue On Tue, Sep 20, 2011 at 1:47 AM, Matin wrote: > Hello, > I installed the latest ruby version (1.9.2p290) via the rubyinstaller > (exe). > I have a Windows 7 64bits. > Installation was fine. > But I can't update or instal

Re: [Rails] Duplicated content in rails

2011-09-19 Thread Rajarshi
I can not understand your problem But for SEO purpose, For customizing url containing Id You can do #in model def to_param "#{id}-#{permalink}" end # controller @product = Article.find(params[:id]) On Tue, Sep 20, 2011 at 7:07 AM, Alvaro Olivencia wrote: > I'm having a problem related to du

Re: [Rails] rubys fejlesztoi allas

2011-09-19 Thread Rajarshi
do u know english? 2011/9/19 Gergely Kalman > Sziasztok > > Itthonra (Budapest) vagy tavmunkaban keresunk Ruby fejleszto(ke)t. > Amerikai cegnek, teljesen bejelentve, > jo fizetesert, nem ez a versenykepes HR BS. Ha erdekel, dobj nekem egy > mailt a gerg...@toptal.com > -ra. Koszi, tovabbi szep

Re: [Rails] RUBY on Rails CMM level company does not have much employees

2011-09-19 Thread Rajarshi
Thnaks for our reply can you ask for me? On Tue, Sep 20, 2011 at 2:58 AM, Hassan Schroeder < hassan.schroe...@gmail.com> wrote: > On Mon, Sep 19, 2011 at 5:04 AM, Rajarshi wrote: > > Why CMM level 5 Companies not working in ruby on rails rather than they > > worked in java or .net > > > And if

Re: [Rails] Re: gmaps4rails "acts_as_gmappable" error

2011-09-19 Thread Rajarshi
https://github.com/rorcraft/ym4r_gm use it any prob let me know On Tue, Sep 20, 2011 at 9:47 AM, Rajarshi wrote: > Please see > http://stackoverflow.com/questions/2557174/google-maps-api-with-rails-3-0 > > > On Tue, Sep 20, 2011 at 9:45 AM, Rajarshi wrote: > >> >> I think u want to show gmap r

Re: [Rails] Re: gmaps4rails "acts_as_gmappable" error

2011-09-19 Thread Rajarshi
Please see http://stackoverflow.com/questions/2557174/google-maps-api-with-rails-3-0 On Tue, Sep 20, 2011 at 9:45 AM, Rajarshi wrote: > > I think u want to show gmap right > > On Tue, Sep 20, 2011 at 9:45 AM, Rajarshi wrote: > >> What do u want to know ? >> >> >> >> >> On Mon, Sep 19, 2011 at 5

Re: [Rails] Re: gmaps4rails "acts_as_gmappable" error

2011-09-19 Thread Rajarshi
I think u want to show gmap right On Tue, Sep 20, 2011 at 9:45 AM, Rajarshi wrote: > What do u want to know ? > > > > > On Mon, Sep 19, 2011 at 5:57 PM, venkata reddy > wrote: > >> Ok fine, >> then you please tell me what is the difference between geokit and >> geocoder? >> >> On Sep 19, 5:17 pm

Re: [Rails] Re: gmaps4rails "acts_as_gmappable" error

2011-09-19 Thread Rajarshi
What do u want to know ? On Mon, Sep 19, 2011 at 5:57 PM, venkata reddy wrote: > Ok fine, > then you please tell me what is the difference between geokit and > geocoder? > > On Sep 19, 5:17 pm, Rajarshi wrote: > > Hi, > > geocoder for google mapshttps://github.com/alexreisner/geocoder > > > >

[Rails] Duplicated content in rails

2011-09-19 Thread Alvaro Olivencia
I'm having a problem related to duplicated content that I need to solve. The problem is very simple, this url: mysite/spain/sevilla/title/171 generates the same content like this one: mysite/spain-Up/sevilla-Up/title-Up/171 The fact is that I'm finding the real content using: [cod

[Rails] rails 3.1 authentication

2011-09-19 Thread Me
I have the rails 3.1 authentication set up, how do I get it to make sure I authenticate system wide? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-ta

[Rails] Re: generating html files

2011-09-19 Thread 7stud --
Here is an example: require 'erb' require 'sqlite3' template = ERB.new <<"END_OF_TEMPLATE" <%= name %> div {color:blue;} Name: <%= name %> Color: <%= color %> END_OF_TEMPLATE db = SQLite3::Database.new( "my_db.db" ) table = "test" db.execute( "select * from #{table}" ) do |row| name

[Rails] Re: partials and render_to_string

2011-09-19 Thread John Merlino
thanks for response On Sep 19, 4:26 am, Frederick Cheung wrote: > On Sep 18, 7:40 pm, 7stud -- wrote: > > > > 2) What exactly is the point of render_to_string? Why can't we just > > > use "render"? Or do we need to use render_to_string in order to use > > > the jquery append method, for example,

[Rails] Re: generating html files

2011-09-19 Thread 7stud --
"\"Jochen Kächelin - 8frogs.de\"" wrote in post #1022809: > what the recommended way to generate static html files based on a > database structure, for example 1000 product pages. > > i would like to specify s template and embed css styles. > > i use rails 3.1 > > thanx erb templates are part of

[Rails] Re: routing question

2011-09-19 Thread 7stud --
Slava Mikerin wrote in post #1022739: > Hello, > I wonder how to tell my routes.rb to route requests to a resource to > it's parent controller > > class Foo < Bar > end > > > resources :foos ===> controller :bars resources :foos, :controller => :bars -- Posted via http://www.ruby-forum.com/. -

[Rails] Re: generating html files

2011-09-19 Thread Daniel Nachbar
On Sep 19, 2:10 pm, "Jochen Kächelin - 8frogs.de" wrote: > what the recommended way to generate static html files based on a database > structure, for example 1000 product pages. > > i would like to specify s template and embed css styles. > > i use rails 3.1 > > thanx I'd look into using fact

[Rails] generating html files

2011-09-19 Thread Jochen Kächelin - 8frogs.de
what the recommended way to generate static html files based on a database structure, for example 1000 product pages. i would like to specify s template and embed css styles. i use rails 3.1 thanx -- You received this message because you are subscribed to the Google Groups "Ruby on Rails:

[Rails] ERROR: While executing gem

2011-09-19 Thread Matin
Hello, I installed the latest ruby version (1.9.2p290) via the rubyinstaller (exe). I have a Windows 7 64bits. Installation was fine. But I can't update or install my gems. For instance if I enter "gem install rails" I get the following error message : ERROR: While executing gem... (Errno:EN0ENT)

[Rails] rubys fejlesztoi allas

2011-09-19 Thread Gergely Kalman
Sziasztok Itthonra (Budapest) vagy tavmunkaban keresunk Ruby fejleszto(ke)t. Amerikai cegnek, teljesen bejelentve, jo fizetesert, nem ez a versenykepes HR BS. Ha erdekel, dobj nekem egy mailt a gerg...@toptal.com -ra. Koszi, tovabbi szep napot :) Gergely -- You received this message because you

Re: [Rails] RUBY on Rails CMM level company does not have much employees

2011-09-19 Thread Hassan Schroeder
On Mon, Sep 19, 2011 at 5:04 AM, Rajarshi wrote: > Why CMM level 5 Companies not working in ruby on rails rather than they > worked in java or .net > And if any big company is working the strength of employees are much less in > India why it is? Maybe you should be asking those companies :-) -

Re: [Rails] How to put Rails applications on the www.

2011-09-19 Thread Lasse Bunk
A preferred way of deploying Rails apps is using Capistrano ( https://github.com/capistrano/capistrano). It automates your deployment and also has a plugin (or "recipe") (require "bundler/capistrano") for installing gems via Bundler. /Lasse 2011/9/19 Martin Wawrusch > Don't even bother with tra

Re: [Rails] Re: postgres set-up

2011-09-19 Thread Lasse Bunk
Use the 'pg' gem: gem 'pg' And in config/database.yml: development: adapter: postgresql database: my_checkins_development host: localhost Taken from a tutorial on my website: http://lassebunk.dk/2011/09/10/creating-a-location-aware-website-using-ruby-on-rails-and-postgis/ /Lass

[Rails] ApiBuilder: XML and JSON builder in one

2011-09-19 Thread Lasse Bunk
I have created ApiBuilder which is a Ruby on Rails plugin/template engine that allows for multiple formats being laid out in a single specification, currently XML and JSON. You lay out your spec in one file and it automatically generates both XML and JSON from that specification. Install it using

[Rails] Weird Parameter Encoding issue in Production Rails 3.1.0

2011-09-19 Thread astjohn
All, I'm having a weird issue with posted parameters in Rails 3.1.0. This is only happening in production and not in development. I have confirmed that when making a post, parameters are passed to the server as: utf8=%E2%9C %93&authenticity_token=jOn16Uw3oUBPQfX02nt1IN8muZf150nTt24Ic4JgPvY %3D&

Re: [Rails] How to put Rails applications on the www.

2011-09-19 Thread Martin Wawrusch
Don't even bother with traditional hosting unless you have constant high traffic. Use heroku.com instead, it has everything you need and deployment is dead simple. Just put the gems in your gemfile, push to heroku and you are done. And btw, it is free for basic usage. On Mon, Sep 19, 2011 at 11:4

[Rails] How to put Rails applications on the www.

2011-09-19 Thread Romain 'Maz' BILLOIR
(Frenchy, sorry =) ) Hi, i'm new web ruby developper and ruby on rails. I've just finished my first rails rapplication and figured out one thing: my webhoster use olds version of rails and ruby, but ... That's not my question. My first rails app was just a try... just my portfolio which i developpe

[Rails] Re: Best Practices in Error Reporting

2011-09-19 Thread jthaddeus
Thanks much for the response and the 3rd party solution link. The more in detailed questions I have around best practices for error handling are: - Where are error the message generated? In the example we have they are generated in the Model. Is this best practice - How are error messages display

[Rails] Re: can't convert Symbol into Integer rails textfieldtag

2011-09-19 Thread venkata reddy
Yes, missed the simple syntax. Thanku you Tim. On Sep 19, 9:27 pm, Tim Shaffer wrote: > Perhaps take a look at line 4. > > You're referencing :params[:search] but params is not a symbol. I think > perhaps you meant params[:search -- You received this message because you are subscribed to the Go

Re: [Rails] Re: Best Practices in Error Reporting

2011-09-19 Thread Philip Hallstrom
> On Sep 18, 6:50 pm, jthaddeus wrote: >> Newbie here. What is the best practice for implementing error >> reporting in a Rails application. I have an example that uses >> ActiveRecord::Base.logger.error. Are there any risks with this or >> recommendations on other implementations? >> > There's n

[Rails] spam from the group

2011-09-19 Thread maskiran
Hi I am newbie to this group and posted 2 questions and all of a sudden I am getting a spam for 20 emails everyday. What do I do about avoiding this one. The spam is really annoying and is full of non-english characters and junk images in the email -- You received this message because you are sub

[Rails] Re: can't convert Symbol into Integer rails textfieldtag

2011-09-19 Thread Tim Shaffer
Perhaps take a look at line 4. You're referencing :params[:search] but params is not a symbol. I think perhaps you meant params[:search -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://gr

[Rails] can't convert Symbol into Integer rails textfieldtag

2011-09-19 Thread venkata reddy
I am trying to implement the geocoder. When i am trying to include a search form, i am getting the following error. TypeError in Locations#index Showing c:/rails/maps/app/views/locations/index.html.erb where line #4 raised: can't convert Symbol into Integer Extracted source (around line #4): 1:

Re: [Rails] Re: how to get instance variables in another action in rails 3

2011-09-19 Thread Colin Law
On 19 September 2011 16:29, Frederick Cheung wrote: > > > On Sep 19, 3:15 pm, Colin Law wrote: >> On 19 September 2011 14:06, subbarao wrote: >> >> > Yes if i use catching in my application view the size limit exceeding >> >> What do you mean catching?  If you mean the rails caching then there >

[Rails] Re: how to get instance variables in another action in rails 3

2011-09-19 Thread Frederick Cheung
On Sep 19, 3:15 pm, Colin Law wrote: > On 19 September 2011 14:06, subbarao wrote: > > > Yes if i use catching in my application view the size limit exceeding > > What do you mean catching?  If you mean the rails caching then there > is no size limit. Depends on the store - for example memcach

Re: [Rails] Re: splitted class into separate table activerecord

2011-09-19 Thread Tim Shaffer
You can also use the Rails delegate feature. I know you said you didn't want to create the the AuthInfo model but I'm not sure there's any harm to it? class User has_one :auth_info delegate :username, :username=, :password, :password=, :to => :auth_info end class AuthInfo belongs_to :user

[Rails] Re: splitted class into separate table activerecord

2011-09-19 Thread Nicolas Sebrecht
The 13/09/11, Vogon Primo wrote: > Suppose that in legacy schema,that you are working on getting > ActiveRecord to work with, you aren't keeping all the information about > user, with the user's main information in the users table, but in a > separate table. > > For example: > > <> > user_id >

Re: [Rails] how to get instance variables in another action in rails 3

2011-09-19 Thread Colin Law
On 19 September 2011 14:06, subbarao wrote: > On Monday 19 September 2011 06:14 PM, Colin Law wrote: >> >> On 19 September 2011 13:13, subbarao  wrote: >>> >>> In my controller show method i have two instance variables which have >>> large amount of data and take much time to fetch from remote sys

[Rails] Startup City 2011 (September 24th,Mumbai)

2011-09-19 Thread Security Mumbai
Hi, Ever dreamt of being Bill Gates or Steve Jobs? If you have the entrepreneurial bug in you, don't miss the biggest event for Startups -- StartupCity. Roll up your Sleeves. Meet over 100 'cool startups' at the Startup City on September 24, 2011 at Ms Subbu Lakshmi Auditorium,Mumbai. You can mee

Re: [Rails] routing question

2011-09-19 Thread Everaldo Gomes
Hi! On Mon, Sep 19, 2011 at 10:57 AM, slava wrote: > Hello, > I wonder how to tell my routes.rb to route requests to a resource to > it's parent controller > > I don't know if what I will say is the "Rails Way", but maybe you can try: 1. Define in your config/routes.rb resources :foos 2. Cre

[Rails] Re: routing question

2011-09-19 Thread Tim Shaffer
Check out the guide for routing, especially the part on "specifying a controller to use" under "customizing restful resources" http://guides.rubyonrails.org/routing.html#customizing-resourceful-routes -- You received this message because you are subscribed to the Google Groups "Ruby on Rails:

[Rails] Re: problem with replacing div with partial page

2011-09-19 Thread Tim Shaffer
First of all it looks like you have a syntax error in the JavaScript: $.("#search_new") should be $("#search_new") If that doesn't fix the issue, there still might be something else wrong. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" grou

[Rails] routing question

2011-09-19 Thread slava
Hello, I wonder how to tell my routes.rb to route requests to a resource to it's parent controller class Foo < Bar end resources :foos ===> controller :bars -- 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] Re: problem with replacing div with partial page

2011-09-19 Thread Pab
Hi, replace_html is prototype method so it won't work, could u provide me any other solution that supports jquery ? thanks, -pab -- 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@

Re: [Rails] problem with replacing div with partial page

2011-09-19 Thread Tim Shaffer
replace_html is a Prototype helper and has been deprecated in Rails 3.1 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/TGE1y-zZsy0J. To post to

Re: [Rails] problem with replacing div with partial page

2011-09-19 Thread subbarao
On Monday 19 September 2011 06:29 PM, Pab wrote: Hi, i am working jquery+rails in view i sent data to contoller's action and in that i action i tried to replace div with partial page using following def search_new @manufact=Manufacturer.find_by_manufacturer_id(manf_id) respond

Re: [Rails] Installing Rails Help!

2011-09-19 Thread Viaduct Productions
Isn't the mysql2 gem used with Rails 3? Cheers _ Rich in Toronto On 2011-09-19, at 7:55 AM, Rajarshi wrote: > > install mysql client > > Please refer this > > http://forums.mysql.com/read.php?116,178217,178217 -- You received this message because you are subscribed to the Goog

Re: [Rails] Installing Rails Help!

2011-09-19 Thread Viaduct Productions
Hi Ben. I get something similar, line 52 in dependency.rb. If you find a solution, let me know. Cheers _ Rich in Toronto On 2011-09-19, at 7:17 AM, ben_hawk wrote: > I then did the bundle install but this kept causing errors, eventually > somehow I got this to work and it said b

Re: [Rails] Re: Installing Rails Help!

2011-09-19 Thread Viaduct Productions
Hi there. I too am having the same issues. I've done everything that I know of to make sure things are all up to date. Using RVM, Rails 3.1 on Snow Leopard. Upon this command, I still get the following error: $ bundle exec rake db:migrate /System/Library/Frameworks/Ruby.framework/Versions/

Re: [Rails] Installing Rails Help!

2011-09-19 Thread ben_hawk
I tried removing rails using the gem unistall rails '3.0.3' and then reinstall it and I get the following error with the rails installation Bens-MacBook-Pro:sharebox bengibson$ gem install rails '3.0.3' Fetching: rails-3.1.0.gem (100%) Successfully installed rails-3.1.0 ERROR: Could not find a

Re: [Rails] how to get instance variables in another action in rails 3

2011-09-19 Thread subbarao
On Monday 19 September 2011 06:14 PM, Colin Law wrote: On 19 September 2011 13:13, subbarao wrote: In my controller show method i have two instance variables which have large amount of data and take much time to fetch from remote system. shown below def show @graph = Koala::Facebook::GraphA

[Rails] Re: 3.1 asset pipeline + Capistrano troubles

2011-09-19 Thread Alistair Holt
Thanks Tim - that has definitely cleared it up in my mind. It's a shame it's not explained like this in the Rails guide. I never had this much trouble when I was just using Jammit before Rails 3.1 :) -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: T

Re: [Rails] Installing Rails Help!

2011-09-19 Thread ben_hawk
I think I have MySQL working now.. I reinstalled the MYSQL dmg and made a few other changes to the database configuration file and now 'bundle install' works However when i try to do the following rake db:create I get the error message Bens-MacBook-Pro:sharebox bengibson$ rake db:create

Re: [Rails] Installing Rails Help!

2011-09-19 Thread ben_hawk
I think I have MySQL working now.. I reinstalled the MYSQL dmg and made a few other changes to the database configuration file and now 'bundle install' works However when i try to do the following rake db:create I get the error message Bens-MacBook-Pro:sharebox bengibson$ rake db:create

[Rails] problem with replacing div with partial page

2011-09-19 Thread Pab
Hi, i am working jquery+rails in view i sent data to contoller's action and in that i action i tried to replace div with partial page using following def search_new @manufact=Manufacturer.find_by_manufacturer_id(manf_id) respond_to do |format| format.html format.js {

[Rails] Re: 3.1 asset pipeline + Capistrano troubles

2011-09-19 Thread Tim Shaffer
If you have config.assets.compile set to true (typical for development) the stylesheet_link_tag will attempt to look in your app/assets directory and compile the css file if necessary. But the stylesheet_link_tag doesn't look outside public/assets in when config.assets.compile is set to false (w

Re: [Rails] Multi threading in heroku rails3 project ?

2011-09-19 Thread subbarao
Thank You for your valuable submission. I will follow the document of simpleworker.com and try. On Monday 19 September 2011 06:13 PM, Martin Wawrusch wrote: This is what background workers are good for. On heroku your choices are delayed job and resque (which I prefer

Re: [Rails] Re: 3.1 asset pipeline + Capistrano troubles

2011-09-19 Thread Peter Vandenabeele
On Mon, Sep 19, 2011 at 2:43 PM, Alistair Holt wrote: > Agreed. I must say this is *extremely* confusing. There seem to be no > decent explanations in the docs or anywhere else. Why > would config.serve_static_assets need changing to be true when we are told > "Apache or nginx will already do this

Re: [Rails] Installing Rails Help!

2011-09-19 Thread ben_hawk
I think I have MySQL working now.. I reinstalled the MYSQL dmg and made a few other changes to the database configuration file and now 'bundle install' works However when i try to do the following rake db:create I get the error message Bens-MacBook-Pro:sharebox bengibson$ rake db:create

Re: [Rails] Invite Friends

2011-09-19 Thread Colin Law
On 19 September 2011 13:31, subbarao wrote: > Sorry no idea about ActionMailer friend requests. Please don't top post, it makes it difficult to follow the thread. Insert you reply at appropriate points in previous post. Thanks ActionMailer will help you to send emails from your application, whi

Re: [Rails] Re: 3.1 asset pipeline + Capistrano troubles

2011-09-19 Thread Peter Vandenabeele
On Mon, Sep 19, 2011 at 2:10 PM, Alistair Holt wrote: > Thanks Tim. Perhaps theres something I'm missing... > >- Do plain CSS/JS files need to go through pre-compilation? And if so, >do they really have to be manually specified in application config? >- Shouldn't Rails' stylesheet_link

Re: [Rails] how to get instance variables in another action in rails 3

2011-09-19 Thread Colin Law
On 19 September 2011 13:13, subbarao wrote: > In my controller show method i have two instance variables which have > large amount of data and take much time to fetch from remote system. > shown below > def show >    @graph = Koala::Facebook::GraphAPI.new(session[:fbuser] > ["credentials"]["token"

Re: [Rails] Multi threading in heroku rails3 project ?

2011-09-19 Thread Martin Wawrusch
This is what background workers are good for. On heroku your choices are delayed job and resque (which I prefer) or you might want to use simpleworker.com, which is a great solution and scales better. On Mon, Sep 19, 2011 at 5:41 AM, subbarao wrote: > I am using multi Threading concept to optimi

Re: [Rails] Re: 3.1 asset pipeline + Capistrano troubles

2011-09-19 Thread Alistair Holt
Agreed. I must say this is *extremely* confusing. There seem to be no decent explanations in the docs or anywhere else. Why would config.serve_static_assets need changing to be true when we are told "Apache or nginx will already do this"? Should I actually be setting up Nginx to serve the files

Re: [Rails] Installing Rails Help!

2011-09-19 Thread Jim Ruther Nill
On Mon, Sep 19, 2011 at 8:29 PM, ben_hawk wrote: > > Still not got this working anyone else have any ideas?? > > you need to install mysql library first. http://lmgtfy.com/?q=install+mysql+osx+lion > Thanks > > > > ben_hawk wrote: > > > > Hi, > > > > I followed a Tutorial on Nettuts to install

[Rails] Multi threading in heroku rails3 project ?

2011-09-19 Thread subbarao
I am using multi Threading concept to optimize performance of long array which takes long time to do action with every element. I used .peach in my code require 'peach' def fr_display @graph = Koala::Facebook::GraphAPI.new(session[:fbuser] ["credentials"]["token"]) @friends = @graph.get_c

Re: [Rails] Re: 3.1 asset pipeline + Capistrano troubles

2011-09-19 Thread Peter Vandenabeele
On Mon, Sep 19, 2011 at 2:23 PM, Rajarshi wrote: > config.serve_static_assets = true > > in production.rb I think this is a really bad idea. With this setting, the assets are served from the _rails_ server (running ruby code) while these are static files (with cache buster names) that can be s

[Rails] Re: Installing Rails Help!

2011-09-19 Thread venkata reddy
Dear ben, trust google and do the related search like installing mysql libraries to your environment. Do it first. Thats the problem, your system is missing mysql libraries for sure. If it is windows i could have definitely helped you! On Sep 19, 5:29 pm, ben_hawk wrote: > Still not got this wor

[Rails] Re: Re: Saving Google Map Image

2011-09-19 Thread Mathew Vivek
Dheeraj Kumar wrote in post #1022364: > Did you see this? > > http://code.google.com/apis/maps/documentation/staticmaps/#quick_example > > If this is not the output you require, please be clear in what you need. thanks dheeraj i have completed by forming a url dynamically replacing the lat long

Re: [Rails] Invite Friends

2011-09-19 Thread subbarao
Sorry no idea about ActionMailer friend requests. On Monday 19 September 2011 05:54 PM, Rajarshi wrote: ActionMailer On Mon, Sep 19, 2011 at 5:48 PM, subbarao > wrote: On Monday 19 September 2011 05:43 PM, ashok k. wrote: how to send Invitation to

Re: [Rails] Installing Rails Help!

2011-09-19 Thread ben_hawk
Still not got this working anyone else have any ideas?? Thanks ben_hawk wrote: > > Hi, > > I followed a Tutorial on Nettuts to install Ruby with RVM and this went > well. I then tried to install Rails to follow the 'How to build a dropbox > live service' from Netttus but appear to get errors

[Rails] Re: gmaps4rails "acts_as_gmappable" error

2011-09-19 Thread venkata reddy
Ok fine, then you please tell me what is the difference between geokit and geocoder? On Sep 19, 5:17 pm, Rajarshi wrote: > Hi, > geocoder for google mapshttps://github.com/alexreisner/geocoder > > On Mon, Sep 19, 2011 at 5:45 PM, venkata reddy > wrote: > > > > > > > > > Dear Rajarshi, > >      

[Rails] Re: how to get instance variables in another action in rails 3

2011-09-19 Thread subbarao
I know filter concept, but how we can apply that concept hear to work with instance variables? give me one example please . On Sep 19, 5:22 pm, Rajarshi wrote: > Yes Because u d onot know filter > Please read before after around filter u will get > > On Mon, Sep 19, 2011 at 5:43 PM, subbarao wr

Re: [Rails] Invite Friends

2011-09-19 Thread Rajarshi
ActionMailer On Mon, Sep 19, 2011 at 5:48 PM, subbarao wrote: > On Monday 19 September 2011 05:43 PM, ashok k. wrote: > >> how to send Invitation to friends and other peoples through rails3 >> application please tell me the solution for this problem i am a fresher >> of ruby on rails >> >> fo

Re: [Rails] Re: 3.1 asset pipeline + Capistrano troubles

2011-09-19 Thread Rajarshi
config.serve_static_assets = true in production.rb On Mon, Sep 19, 2011 at 5:40 PM, Alistair Holt wrote: > Thanks Tim. Perhaps theres something I'm missing... > >- Do plain CSS/JS files need to go through pre-compilation? And if so, >do they really have to be manually specified in applic

Re: [Rails] how to get instance variables in another action in rails 3

2011-09-19 Thread Rajarshi
Yes Because u d onot know filter Please read before after around filter u will get On Mon, Sep 19, 2011 at 5:43 PM, subbarao wrote: > In my controller show method i have two instance variables which have > large amount of data and take much time to fetch from remote system. > shown below > def s

Re: [Rails] Re: Installing Rails Help!

2011-09-19 Thread Rajarshi
do you know google search you do not know mysql installation plese see goggole On Mon, Sep 19, 2011 at 5:48 PM, Rajarshi wrote: > development: > adapter: mysql2 > encoding: utf8 > reconnect: false > database: depot_development > pool: 5 > username: root > password: root > host: localhost

Re: [Rails] Re: Installing Rails Help!

2011-09-19 Thread Rajarshi
development: adapter: mysql2 encoding: utf8 reconnect: false database: depot_development pool: 5 username: root password: root host: localhost Please use adapter:mysql On Mon, Sep 19, 2011 at 5:43 PM, venkata reddy wrote: > I am working on windows 7 32 bit. I came across the same proble

Re: [Rails] Invite Friends

2011-09-19 Thread subbarao
On Monday 19 September 2011 05:43 PM, ashok k. wrote: how to send Invitation to friends and other peoples through rails3 application please tell me the solution for this problem i am a fresher of ruby on rails for facebook ? or twitter application ? -- You received this message because you ar

Re: [Rails] Re: gmaps4rails "acts_as_gmappable" error

2011-09-19 Thread Rajarshi
Hi, geocoder for google maps https://github.com/alexreisner/geocoder On Mon, Sep 19, 2011 at 5:45 PM, venkata reddy wrote: > Dear Rajarshi, > geocoder is for what?is it for displaying google > maps or for some geocoding purpose? > Anyway i solved the above error using gmaps4ra

Re: [Rails] Installing Rails Help!

2011-09-19 Thread ben_hawk
Really dont know how to install this mysql library stuff. Detailed instructions or links to downloads would be much apprenticed thanks venkata reddy wrote: > > > That might be because of the mysql2 adapter is missing > let me know your environment details including os.. > > On Sep 19, 4:5

[Rails] Re: gmaps4rails "acts_as_gmappable" error

2011-09-19 Thread venkata reddy
Dear Rajarshi, geocoder is for what?is it for displaying google maps or for some geocoding purpose? Anyway i solved the above error using gmaps4rails..Thank you On Sep 19, 4:56 pm, Rajarshi wrote: > use geocoder > > On Mon, Sep 19, 2011 at 4:42 PM, venkata reddy > wrote: > >

[Rails] Invite Friends

2011-09-19 Thread ashok k.
how to send Invitation to friends and other peoples through rails3 application please tell me the solution for this problem i am a fresher of ruby on rails -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Ta

[Rails] Re: Installing Rails Help!

2011-09-19 Thread venkata reddy
I am working on windows 7 32 bit. I came across the same problem. But for me the below procedure worked great! 1. edit Gemfile => gem 'mysql2', '0.2.6' 2. download mysql-noinstall-5.1.50-win32.zip at http://downloads.mysql.com/archives/mysql-5.1/mysql-noinstall-5.1.50-... ,unzip 3. ge

  1   2   >