Re: [Rails] Can I play with Rails 3 without destroying my Rails 2 setup?

2010-05-14 Thread steve ross
On May 14, 2010, at 12:23 PM, comopasta Gr wrote: > > Hi, > > I should start playing with Rails 3 but I don't want to use a different > machine for that. > > I am currently on Rails 2.3.5 and I'm not yet using RVM. > I know the RVM will help on the Ruby side. But what about the Rails > side, how

[Rails] Re: Memory issues

2010-05-14 Thread Manivannanj Jeganathan
Larry Meadors wrote: > Google for "linux free command" > > From the third link: http://salomie.ro/wiki/index.php/Linux_Free_Command > > "The second line starting with -/+ buffers/cache: tells us how much of > the memory in the buffers/cache is used by the applications and how > much is free. Keep

Re: [Rails] Ruby Midwest Early Bird Ends Tomorrow

2010-05-14 Thread Josh Cheek
On Fri, May 14, 2010 at 4:50 PM, Luke Pillow wrote: > The Ruby Midwest Conference Early Bird pricing ends tomorrow, Saturday, May > 15. Don't miss out on two full days of great talks, networking, and hacking > for only $75! > > Attendees are also invited to the OMGWTFBBQ (http://bbq.rubymidwest.

[Rails] Re: ActionController::UnknownHttpMethod: ***, accepted HTTP methods are get, head, put, post, delete, and options

2010-05-14 Thread jemminger
Still getting a slew of these on one of my sites. Annoying, because you can't seem to trap it with the normal rescue_from in application_controller, as Rails seems to intercept this exception before it ever makes it that far up the chain. On Apr 7, 2:23 pm, Nikolaj Nikolajsen wrote: > Got two o

[Rails] Re: Tricky model situatione

2010-05-14 Thread badnaam
I am guessing I will need to change the routes like.. map.resources :users, has_many => :owned_clubs? On May 14, 7:06 pm, badnaam wrote: > Thanks Matt and Colin. > > On May 14, 8:46 am, Matt Jones wrote: > > > > > On May 14, 1:50 am, badnaam wrote: > > > > I have two models Club and users. u

[Rails] Re: sqlite3 module not found

2010-05-14 Thread Andi Lebaron
Thanks Juan :) Worked like a charm. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send e

[Rails] Re: Tricky model situatione

2010-05-14 Thread badnaam
Thanks Matt and Colin. On May 14, 8:46 am, Matt Jones wrote: > On May 14, 1:50 am, badnaam wrote: > > > > > I have two models Club and users. users are regular authenticated > > users and some of them might create a club.  A club can also have > > members (essentially users) and there are attri

[Rails] Re: Combining multiple finds into one result

2010-05-14 Thread Hubert Yoshizaki
Ah, makes perfect sense. 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-t...@googlegroups.com. To unsubscribe from this group, send e

Re: [Rails] sqlite3 module not found

2010-05-14 Thread Juan Pablo Genovese
Andi, Download this file and extract it's contents to your Ruby's bin directory. http://www.sqlite.org/sqlitedll-3_6_23_1.zip Cheers! JP 2010/5/14 Andi Lebaron > Hi, I'm trying to follow the Rails tutorial found here, > http://guides.rubyonrails.org/getting_started.html and when I go to run >

[Rails] Re: SOAP driver question

2010-05-14 Thread pepe
Sorry, "method" meaning "way". Basically I want to create the driver only once, at initialization, so I don't have to every time the web service is used. On May 14, 5:44 pm, pepe wrote: > Hi there, > > I'm consuming a couple of SOAP web services in my application. What > would be the best method

[Rails] sqlite3 module not found

2010-05-14 Thread Andi Lebaron
Hi, I'm trying to follow the Rails tutorial found here, http://guides.rubyonrails.org/getting_started.html and when I go to run $ rake db:create I get this wonderful error of sqlite3.dll missing. So, I just went to my ruby directory, and ran $ gem install sqlite3-ruby sqlite3 I'm not entirely sure

[Rails] Re: Sweeper class doesn't work

2010-05-14 Thread Trung Do
Hi, For whom may get the same problem: I moved the sweeper declaration 'cache_sweeper :privilege_cache_sweeper' from UsersController to ApplicationController. And it works for me! But I still have no idea why this change makes expire_action in cache sweeper work. Any explanations are welcome.

[Rails] Re: New to cacheing

2010-05-14 Thread Trung Do
Hi, Jeremy Woertink wrote: > Ok, So, I'm a bad developer and have never used any sort of cacheing > before. I decided it's time I step up and I threw in some memcached > magic. I'm still pretty new to all this, so I'm confused on how some > things work. I've watched the railscast on cacheing, and

Re: [Rails] Re: Combining multiple finds into one result

2010-05-14 Thread Hassan Schroeder
On Fri, May 14, 2010 at 2:24 PM, Hubert Yoshizaki wrote: > Quick question, when you do > a .find(:all) I'm assuming it returns an array of objects? No need to assume :-) >> foos = Foo.all .. >> foos.class => Array >> FWIW, -- Hassan Schroeder hassan.schroe...@gmail

[Rails] Workling/Starling: killing a background work from a controller

2010-05-14 Thread PierreW
Hello! There is something I don't understand with Workling/Starling: it is easy to start a background work from a controller, but is it possible to stop this background work from a controller? Say for example: user input -> controller triggers background work aaa another user input -> controller

[Rails] Re: Combining multiple finds into one result

2010-05-14 Thread Jeff Lewis
>From the rails api docs examples (http://api.rubyonrails.org/classes/ ActiveRecord/Base.html#M002263): ... # find all Person.find(:all) # returns an array of objects for all the rows fetched by SELECT * FROM people Person.find(:all, :conditions => [ "category IN (?)", categories], :limit =>

[Rails] Ruby Midwest Early Bird Ends Tomorrow

2010-05-14 Thread Luke Pillow
The Ruby Midwest Conference Early Bird pricing ends tomorrow, Saturday, May 15. Don't miss out on two full days of great talks, networking, and hacking for only $75! Attendees are also invited to the OMGWTFBBQ (http://bbq.rubymidwest.com) after event sponsored by Intridea. Follow @RubyMidwest (h

[Rails] SOAP driver question

2010-05-14 Thread pepe
Hi there, I'm consuming a couple of SOAP web services in my application. What would be the best method to create the RPC driver only once? Thank you. -- 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 r

[Rails] Re: Combining multiple finds into one result

2010-05-14 Thread Hubert Yoshizaki
Ahh, thanks. Should of thought of that one. Quick question, when you do a .find(:all) I'm assuming it returns an array of objects? Jeff Burlysystems wrote: > The .find_by_(...) meth returns the first model object found (or > nil if none found), whereas .find(:all, ...) meth returns an array:

[Rails] Re: Combining multiple finds into one result

2010-05-14 Thread Hubert Yoshizaki
Ahh that works, thanks! I think I had the general idea but I think every time I tried @a = [] I tried @a += A.find_by_id(some_id) while every time I tried @a << A.find_by_id(some_id) I never tried the @a = [] whoops, thanks for all the help. Plus never seen @a.compact!, helps a lot :) btw,

[Rails] Gem dev workflow?

2010-05-14 Thread elliottg
I am beginning development of my first Gem for a Rails app. I am curious what some best practices are regarding development workflow. As the Gem will be Rails dependent, it seems as though it needs to be vendored so that I can easily run tests, write code and see changes during development instea

[Rails] Re: Can't connect to Sybase

2010-05-14 Thread Sushmi Sushmi
Roman Ilin wrote: > Sorry. > My Sybase has false config. > It works. > > Roman Hi , Can I know how to did you change your config file ? b/c I am getting same error when I run the script . -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to th

[Rails] Re: Re: Re: Re: Re: HTML and CSS to PDF

2010-05-14 Thread Jonathan Steel
> It may render ok at the moment, but can you sleep soundly knowing you > have invalid html and that the next release of firefox may interpret > the invalid html in a different way? Haha. Like a baby! ... that wakes screaming -- Posted via http://www.ruby-forum.com/. -- You received this mess

Re: [Rails] Adding html markup to a blog post content field

2010-05-14 Thread Colin Law
On 14 May 2010 00:15, Norm wrote: > Hello all, > > I have spent the better part of a day getting my "hello world!" > application, aka. blog, done. I am so loving Rails. One thing that I > am stumped on is how to enable html in my post. > > I have two fields for a Post, title and content. in the co

Re: [Rails] Re: Re: Re: Re: HTML and CSS to PDF

2010-05-14 Thread Colin Law
On 14 May 2010 18:51, Jonathan Steel wrote: >> Invalid pages in the browser are just as evil, aren't they ;-) I >> sometimes wish browsers were a lot less forgiving on that part, it >> would avoid a lot of seemingly unrelated issues, especially when you >> start using Javascript DOM manipulations.

[Rails] Re: Combining multiple finds into one result

2010-05-14 Thread Jeff
On May 14, 2:09 pm, Hubert Yoshizaki wrote: > What I want to do is something like this: > > searchid = 4 > while searchid != -1 >   @a += A.find_by_someid(searchid) >   @b = B.find_by_someid(searchid) >   searchid = @b.parentid > end > > The problem being the line > > @a += A.find_by_someid(search

[Rails] Can I play with Rails 3 without destroying my Rails 2 setup?

2010-05-14 Thread comopasta Gr
Hi, I should start playing with Rails 3 but I don't want to use a different machine for that. I am currently on Rails 2.3.5 and I'm not yet using RVM. I know the RVM will help on the Ruby side. But what about the Rails side, how can I make sure I can start Rails 3 but use Rails 2 for "normal" wor

[Rails] Re: Combining multiple finds into one result

2010-05-14 Thread Jeff Lewis
The .find_by_(...) meth returns the first model object found (or nil if none found), whereas .find(:all, ...) meth returns an array: $ ./script/console >> puts Foo.find_by_id(1).class Foo >> puts Foo.find_by_id(0).class NilClass >> puts Foo.find(:all).class Array Jeff On May 14, 12:09 pm,

[Rails] Re: from string to field name

2010-05-14 Thread Viorel
On May 14, 10:10 pm, David wrote: > Or model_name.read_attribute(field_name) > > However if you multiple fields like that, it sounds like you need a > has_many relationship. > > has_many :field_names > > object.field_names.each do |field_mame| >   # do something > end > > On May 14, 2:51 pm, Mar

[Rails] Re: from string to field name

2010-05-14 Thread David
Or model_name.read_attribute(field_name) However if you multiple fields like that, it sounds like you need a has_many relationship. has_many :field_names object.field_names.each do |field_mame| # do something end On May 14, 2:51 pm, Marnen Laibow-Koser wrote: > [Please quote when replying] >

[Rails] Combining multiple finds into one result

2010-05-14 Thread Hubert Yoshizaki
What I want to do is something like this: searchid = 4 while searchid != -1 @a += A.find_by_someid(searchid) @b = B.find_by_someid(searchid) searchid = @b.parentid end The problem being the line @a += A.find_by_someid(searchid) The error being something like NoMethodError: undefined metho

[Rails] Re: Retain form data on redirection

2010-05-14 Thread David
You may have to supply some code, as render :action => :add should work. Do the variables have the same names? Are there any variables set in the "add" action that aren't getting set in the "create" action? Rendering an action does not run its controller code, only renders its view template. On Ma

[Rails] Re: Changing names in an app -- advice wanted

2010-05-14 Thread RichardOnRails
Hi, Thanks for you feedback. My custom search.rb and transform.rb programs did the job, I think. No test programs were implicated because I'm delinquent on employing formal testing on my first real Rails app. I know its sinful, but I survived a career of computer consulting without formal testi

[Rails] Re: Retain form data on redirection

2010-05-14 Thread Pix
I have a view that is a form in add.html.erb and in the create method in the controller I have validation check if everything in the form is set. If validation finds an error, I do render :action => :add and all the set values are lost. if I just do "render" or nothing, it defaults to the creat

[Rails] Rails 3 & Scope in routes

2010-05-14 Thread Marek Jelen
Hi, I have something like this: scope :module => '', :constraints => { :subdomain => '' } do match '/', :to => 'welcome#index', :as => :_root end Is there a way to add to scope naming prefix. For example scope :name => 'name' do match '/', :to => 'welcome#index', :as

[Rails] Re: from string to field name

2010-05-14 Thread Marnen Laibow-Koser
[Please quote when replying] Viorel wrote: > Thank you Michel! I works! Great. Now normalize your database schema to get rid of those repeating fields. Best, -- Marnen Laibow-Koser http://www.marnen.org mar...@marnen.org -- Posted via http://www.ruby-forum.com/. -- You received this message

[Rails] Adding html markup to a blog post content field

2010-05-14 Thread Norm
Hello all, I have spent the better part of a day getting my "hello world!" application, aka. blog, done. I am so loving Rails. One thing that I am stumped on is how to enable html in my post. I have two fields for a Post, title and content. in the content field if I enter a url or enter an anchor

[Rails] Re: from string to field name

2010-05-14 Thread Viorel
Thank you Michel! I works! On May 14, 9:36 pm, Michael Pavling wrote: > On 14 May 2010 19:24, Viorel wrote: > > > My problem is that ModelName has no field named field_name, it have > > fields like field01, field02,...,field09. So, how do I transform a > > string in a field name? > > puts ModelN

Re: [Rails] from string to field name

2010-05-14 Thread Michael Pavling
On 14 May 2010 19:24, Viorel wrote: > My problem is that ModelName has no field named field_name, it have > fields like field01, field02,...,field09. So, how do I transform a > string in a field name? > > puts ModelName.send(field_name) -- You received this message because you are subscribed t

[Rails] Re: from string to field name

2010-05-14 Thread Viorel
On May 14, 9:26 pm, Joshua Martin wrote: > What exactly are you trying to do with this? I am trying to access these fields > > > > > > On Fri, May 14, 2010 at 2:24 PM, Viorel wrote: > > I have something like this: > > for xx in '01'..'09' > >  field_name='field'+xx > >  puts ModelName.field_nam

[Rails] Re: from string to field name

2010-05-14 Thread Viorel
I am trying to access those fields On May 14, 9:26 pm, Joshua Martin wrote: > What exactly are you trying to do with this? > > > > > > On Fri, May 14, 2010 at 2:24 PM, Viorel wrote: > > I have something like this: > > for xx in '01'..'09' > >  field_name='field'+xx > >  puts ModelName.field_name

Re: [Rails] from string to field name

2010-05-14 Thread Joshua Martin
What exactly are you trying to do with this? On Fri, May 14, 2010 at 2:24 PM, Viorel wrote: > I have something like this: > for xx in '01'..'09' > field_name='field'+xx > puts ModelName.field_name > end > > My problem is that ModelName has no field named field_name, it have > fields like fiel

[Rails] from string to field name

2010-05-14 Thread Viorel
I have something like this: for xx in '01'..'09' field_name='field'+xx puts ModelName.field_name end My problem is that ModelName has no field named field_name, it have fields like field01, field02,...,field09. So, how do I transform a string in a field name? It might be a trivial solution, b

[Rails] Re: Can't get the singleton of a Rails model

2010-05-14 Thread Daniel Waite
> Marnen Laibow-Koser wrote: > > That's the Singleton pattern. I think the OP wanted to know how to get > a model's singleton class (eigenclass). Correct. > Unfortunate coincidence of terminology for two completely different things. Agreed. On a hunch, I looked up Black's precise terminology i

[Rails] Re: Re: Re: Re: HTML and CSS to PDF

2010-05-14 Thread Jonathan Steel
> Invalid pages in the browser are just as evil, aren't they ;-) I > sometimes wish browsers were a lot less forgiving on that part, it > would avoid a lot of seemingly unrelated issues, especially when you > start using Javascript DOM manipulations. Yah I knew somebody would bring that up as soon

[Rails] Re: Re: Error: "ActionController::InvalidAuthenticityToken"

2010-05-14 Thread Tom Ha
I can confirm that I use the RESTful authentication plugin, too. Thanks for your input! -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-t...@goog

Re: [Rails] Re: Re: Re: HTML and CSS to PDF

2010-05-14 Thread Peter De Berdt
On 14 May 2010, at 19:23, Jonathan Steel wrote: prince: /Users/jonathan/tmp/97.html: error: could not load input it. Being so expensive, Prince pretty much had to work without a hitch if I was going to spend any time trying to make it work. So what I really meant by this was that with seve

Re: [Rails] Re: Error: "ActionController::InvalidAuthenticityToken"

2010-05-14 Thread Peter De Berdt
On 14 May 2010, at 18:09, Tom Ha wrote: Only sometimes... Maybe due to bots...? We've had it happen on random occasions while using the RESTful authentication plugin after upgrading Rails. I remember reading a ticket issue somewhere about it and iirc it has to do with something funky i

[Rails] Re: Re: Re: HTML and CSS to PDF

2010-05-14 Thread Jonathan Steel
prince: /Users/jonathan/tmp/97.html: error: could not load input >> it. Being so expensive, Prince pretty much had to work without a hitch >> if I was going to spend any time trying to make it work. So what I really meant by this was that with several other options available, things had to

[Rails] rake clean; rake ; rake install

2010-05-14 Thread Marc Byrd
Feel like such a nube/dweeb for asking but... Background - I follow redis, redis-rb, and phpredis on github, bleeding edge, trunk. With redis I type make clean; make - then I'm good to go With phpredis i type make clean; make; make install - then I'm good to go (maybe restart apache2) What are

Re: [Rails] Re: Re: HTML and CSS to PDF

2010-05-14 Thread Peter De Berdt
On 13 May 2010, at 18:48, Jonathan Steel wrote: mismatch: div line 480 and html followed by just as many: prince: /Users/jonathan/tmp/97.html:552: error: Premature end of data in tag div line 372 and ending with: prince: /Users/jonathan/tmp/97.html: error: could not load input file pr

[Rails] RESTful route for a form

2010-05-14 Thread adam wead
I'm trying to figure out what the route should be for a form I'm creating. I have 2 tables: rooms, teches. One room can have many teches (ie, computers), and I've created a form for moving a tech from one room to the other. I've setup a form that pulls a list of room names and their ids and crea

Re: [Rails] Importing Source Code

2010-05-14 Thread Hassan Schroeder
On Fri, May 14, 2010 at 9:19 AM, Be Wh wrote: > ... and use terminal to start the server (same > error for mongrel and Webrick) I get this error explosion: > > => Booting Mongrel > => Rails 2.3.2 application starting on http://0.0.0.0:3000 > /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in > `g

[Rails] Importing Source Code

2010-05-14 Thread Be Wh
Hi, New to RoR and have been assigned a pretty hefty task. I have to alter some source code for a company, the only problem is when I import the project (using Netbeans) and use terminal to start the server (same error for mongrel and Webrick) I get this error explosion: => Booting Mongrel => Rai

[Rails] Re: Error: "ActionController::InvalidAuthenticityToken"

2010-05-14 Thread Tom Ha
Only sometimes... Maybe due to bots...? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, s

[Rails] passenger and apache: worker or prefork

2010-05-14 Thread eugenio
i'm going to install apache and passenger on a intel atom dual (dual core). is it better to install apache-worker or apache-prefork? -- 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...@goo

[Rails] Re: Error: "ActionController::InvalidAuthenticityToken"

2010-05-14 Thread David
Does it always do it or only sometimes? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@go

[Rails] Re: form_for Values Are Not Visible

2010-05-14 Thread David
That would do it. Meanwhile, if you are using form_for, you should do this: <%= f.text_field :first_name %> The f knows it refers to the person record because you told it so with form_for... On May 14, 9:50 am, Joshua Martin wrote: > I feel quite stupid now.. Apparently, I had some JQuery for a

[Rails] Re: Tricky model situatione

2010-05-14 Thread Matt Jones
On May 14, 1:50 am, badnaam wrote: > I have two models Club and users. users are regular authenticated > users and some of them might create a club.  A club can also have > members (essentially users) and there are attributes and models that > apply to member but not to users. > > Here is what I

[Rails] Re: Memory issues

2010-05-14 Thread Manivannanj Jeganathan
Larry Meadors wrote: > Google for "linux free command" > > From the third link: http://salomie.ro/wiki/index.php/Linux_Free_Command > > "The second line starting with -/+ buffers/cache: tells us how much of > the memory in the buffers/cache is used by the applications and how > much is free. Keep

Re: [Rails] Memory issues

2010-05-14 Thread Larry Meadors
Google for "linux free command" >From the third link: http://salomie.ro/wiki/index.php/Linux_Free_Command "The second line starting with -/+ buffers/cache: tells us how much of the memory in the buffers/cache is used by the applications and how much is free. Keep in mind that in general the cache

[Rails] [ANN] marnen-foreigner 0.5.2: MS SQL Server 2005 support

2010-05-14 Thread Marnen Laibow-Koser
Hi everyone! I'm delighted to announce the release of marnen-foreigner 0.5.2. This is my fork of matthuhiggins-foreigner 0.5.0, and adds MS SQL Server 2005 foreign key constraint support to the MySQL and PostgreSQL support that was already in the gem. This is my first public gem release, and I'd

[Rails] Garbage collection

2010-05-14 Thread Manivannanj Jeganathan
We have developed rails reports and deployed in server, report have some hierarchy levels. Initially we have less volume of data in database table and report is running with fine performance... after few months,reports get very slower, we thought that this could be because of data increased i

[Rails] Memory issues

2010-05-14 Thread Manivannanj Jeganathan
Hi, I am really struggle with following result..i have to explain my situation. First, i have created small rails application which is only used to show data from table called products(nearly 11 lakhs of records in the table).Application was getting very low performance, So i decided to measure Ra

Re: [Rails] Freelance

2010-05-14 Thread Rob Lacey
One of my current projects used to run their Rails app on a shared Plesk server using FCGI in the US. Fortunately part of taking on the contract I moved them over to Brightbox (in the UK). Which compared to my own Linode box is expensive however it allows the client to take care of the billing and

Re: [Rails] form_for Values Are Not Visible

2010-05-14 Thread Joshua Martin
I feel quite stupid now.. Apparently, I had some JQuery for a search textbox whose job involved incorrectly blanking out all input:text in the page... Didn't realize it until I simplified the page as much as possible. Definitely won't make this mistake again (: On Fri, May 14, 2010 at 9:25 AM, C

[Rails] Re: Error: "ActionController::InvalidAuthenticityToken"

2010-05-14 Thread Aditya Sanghi
Have you cached your view by any chance? That would mean that the authenticity_token in the view is stored in a cached file and not really dynamic? Cheers, Aditya Tom Ha wrote: > Hi there, > > I have my first Rails app running and I regularly get the following > "logged_exception" error messag

Re: [Rails] form_for Values Are Not Visible

2010-05-14 Thread Colin Law
On 14 May 2010 14:08, Joshua Martin wrote: > You might need to keep that nickel Bill (: > > I've removed all the :size elements from the form and validated the page > XHTML strict using W3C's validator. > > Yet, the values are not displayed. The values are in the HTML, just not > being displayed i

[Rails] Re: association to an association

2010-05-14 Thread Gone Sail
i had not thought of a polymorphic association. works good and does what i needed. Ar Chron wrote: > Gone Sail wrote: >> right this sounds like what i need to do. so your association tables (AB >> and AC) have their own unique ids? Xlink is the polymorphic link from AB >> and AC to the X table

[Rails] Re: Rails 3: Change validation error formatting?

2010-05-14 Thread Mike
Hello, thanks for your response. I'm looking at actionpack-3.0.0.beta3/README and can't find any mention of this. Using the example below, is there a way to style the elements surrounding the invalid input (and not just the input itself)? I'd like to change the CSS class name, too. Basically I'd

Re: [Rails] best practice in rendering page

2010-05-14 Thread Colin Law
On 14 May 2010 13:42, arga aridarma wrote: > Is there any Rails way how to perform this user-based ajax call? > > The periodically_call_remote is ok, but it is a periodically calls. link_to_remote is what you want. Have a look for tutorials on basic ajax in rails. Colin > > regards, > > Arga >

Re: [Rails] form_for Values Are Not Visible

2010-05-14 Thread Joshua Martin
You might need to keep that nickel Bill (: I've removed all the :size elements from the form and validated the page XHTML strict using W3C's validator. Yet, the values are not displayed. The values are in the HTML, just not being displayed in the text boxes and text area for some reason. On a rel

[Rails] migration and myisam

2010-05-14 Thread eugenio
do rails migrations use mysql default storage engine or do they force using innodb? what happen if innodb is disabled on the mysql server? i want to use only myisam, do i need to change something in the migrations? -- You received this message because you are subscribed to the Google Groups "Ruby

[Rails] Re: Arguments Error

2010-05-14 Thread Angel Dinar
I have the exact same problem. same book. same code. same error. So, how did you finally solve the problem ? Thanks Angel -- 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,

Re: [Rails] best practice in rendering page

2010-05-14 Thread arga aridarma
Is there any Rails way how to perform this user-based ajax call? The periodically_call_remote is ok, but it is a periodically calls. regards, Arga - Original Message From: Colin Law On 13 May 2010 19:24, arga aridarma wrote: > Hi all, > > I'm just wondering what is the best practic

[Rails] Re: A second production environment

2010-05-14 Thread Ben Woodcroft
Ar Chron wrote: > First simple question: > > Have you compared the log files for those two environments? Is your > second "production" environment really being treated as production? > > Sounds like you're getting all the dev class reloading and logging, just > like a non-production environmen

[Rails] Re: any way to stop notify(method) in a model ?

2010-05-14 Thread Marnen Laibow-Koser
[Please quote when replying.] Bob Smith wrote: > It acts like I set a breakpoint, but I haven't. Not sure why, but this > problem vanished last night.. Perhaps the class was cached (which Rails does automatically in production) and the cached version included the breakpoints? Then if you resta

[Rails] Re: stripping back all migrations: is it wise?

2010-05-14 Thread Ar Chron
Your migrations are really just a set of steps to a specific point. I have seen and done 'migration maintenance' multiple ways. On one team, there is a certain 'sanctity' to the notions of migrations, and they are all kept separate and unaltered. Blew it in your last migration? Well, make a new

[Rails] Re: A second production environment

2010-05-14 Thread Ar Chron
First simple question: Have you compared the log files for those two environments? Is your second "production" environment really being treated as production? Sounds like you're getting all the dev class reloading and logging, just like a non-production environment. -- Posted via http://www.r

[Rails] STI

2010-05-14 Thread Tom Mac
Hi While googling i found this old blog. http://sean-carley.blogspot.com/2006/05/when-rails-needs-clue-single-table.html But the problem specified there still exists with even rails 2.3.5 . Why it is not resolved Any specific cause? Please share your thoughts Thanks Tom -- Posted via htt

Re: [Rails] Rails default date format

2010-05-14 Thread Colin Law
On 14 May 2010 10:50, Hemant Bhargava wrote: > Hello All, > > How can i convert the date format "2010-01-01" to rails default date > format. I mean to "Fri, 14 May 2010"? You can use Date.strptime to parse it then strftime to format it to whatever format you like. Colin -- You received this me

Re: [Rails] Rails default date format

2010-05-14 Thread ChenJie|抽屉
On Fri, May 14, 2010 at 17:50, Hemant Bhargava wrote: > Hello All, > > How can i convert the date format "2010-01-01" to rails default date > format. I mean to "Fri, 14 May 2010"? > > Is there any built in function for it.. Googled but ..? > -- > Posted via http://www.ruby-forum.com/. > > -- > Yo

[Rails] Re: HTML and CSS to PDF

2010-05-14 Thread Amar Daxini
Jonathan Steel wrote: > Jeff Burlysystems wrote: >> Sounds like the underlying html/css in your "complicated" test might >> not be valid, such that prince is saying that it isn't able to >> generate the pdf because it can't parse/process that html/css? You >> might want to run that html/css thru a

[Rails] Re: HTML and CSS to PDF

2010-05-14 Thread Amar Daxini
Jonathan Steel wrote: http://github.com/amardaxini/acts_as_flying_saucer_demo";>Act as flying saucer demo Just make sure your html is proper Any query regarding acts_as_flying_saucer you can drop me a mail on amardax...@gmail.com http://railstech.com";>Amar Daxini -- Posted via http://www.ruby-f

[Rails] Rails default date format

2010-05-14 Thread Hemant Bhargava
Hello All, How can i convert the date format "2010-01-01" to rails default date format. I mean to "Fri, 14 May 2010"? Is there any built in function for it.. Googled but ..? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "

Re: [Rails] Tricky model situatione

2010-05-14 Thread Colin Law
On 14 May 2010 06:50, badnaam wrote: > I have two models Club and users. users are regular authenticated > users and some of them might create a club.  A club can also have > members (essentially users) and there are attributes and models that > apply to member but not to users. > > Here is what I

Re: [Rails] form_for Values Are Not Visible

2010-05-14 Thread clanlaw
On 14 May 2010 02:22, Joshua Martin wrote: > I'm using this form in an edit page to update a person. For some weird > reason, when I view this form in the browser... The text field's value is > set to the person's firstname, but it does not display in the browser. > > The form works perfectly on W