[Rails] Re: pls,explain about search action

2009-03-30 Thread Siddick Ebramsha
Thiti Panya wrote: Hello, i want create web page for searching items in database. i try to run code to find items in script/console it's work.but i have problem about show results after find items in database finish. pls, explain me what next step that i can do. def search @title =

[Rails] Re: How can I let rails working on non-block mode?

2009-03-30 Thread Siddick Ebramsha
Zhao Yi wrote: When I run ruby script/server to start rails server, the current shell will be blocked and all the output from rails will be written to the current console. Does rails support a non-block mode and let the output to be written to a specified log file? Use the -d option with the

[Rails] form_remote_tag does not update div

2009-03-30 Thread Jeba Momin
Hello all, I'm using a form_remote_tag as: % form_remote_tag(:update=statdiv,:url = { :controller=:ticket,:action = :status }) do % table width=100% height=100% class=loginbox tr td E-mail /td td %= text_field 'ticket', 'email' ,'id'='email' ,

[Rails] Re: Displaying HTML code in view

2009-03-30 Thread Charanya Nagarajan
Siddick Ebramsha wrote: % myfile.each do |line| % li %= line %/li Solution :- li %=h line % /li % end% /ul Thank You...It worked.. -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed

[Rails] Re: form_remote_tag does not update div

2009-03-30 Thread Siddick Ebramsha
I think, the /ticket/status.rhtml contain a tag with the id as statdiv. Check-it-out. -- 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

[Rails] Re: form_remote_tag does not update div

2009-03-30 Thread Jeba Momin
Siddick Ebramsha wrote: I think, the /ticket/status.rhtml contain a tag with the id as statdiv. Check-it-out. Thanks for the reply. I tried it but things are the same :( The div does not get updated... -- Posted via http://www.ruby-forum.com/.

[Rails] Re: How can I let rails working on non-block mode?

2009-03-30 Thread Zhao Yi
Siddick Ebramsha wrote: Zhao Yi wrote: When I run ruby script/server to start rails server, the current shell will be blocked and all the output from rails will be written to the current console. Does rails support a non-block mode and let the output to be written to a specified log file?

[Rails] Re: form_remote_tag does not update div

2009-03-30 Thread Siddick Ebramsha
I am not Giving the correct solution, but it will work. Solution :- form_remote_tag(:update=statdiv,:url = { :controller=test,:action = status }, :before = $('statdiv').update(''); ) -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received

[Rails] Re: How can I let rails working on non-block mode?

2009-03-30 Thread Siddick Ebramsha
The logs will be in the log/development.log file. -- 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

[Rails] Re: form_remote_tag does not update div

2009-03-30 Thread Jeba Momin
Siddick Ebramsha wrote: I am not Giving the correct solution, but it will work. Solution :- form_remote_tag(:update=statdiv,:url = { :controller=test,:action = status }, :before = $('statdiv').update(''); ) Hey thank you so much for your solution but I got it working by: %

[Rails] Re: How can I let rails working on non-block mode?

2009-03-30 Thread Zhao Yi
Siddick Ebramsha wrote: The logs will be in the log/development.log file. Can I specify a log file? -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk

[Rails] Please suggest plugin to browse and view data in database

2009-03-30 Thread Taro Iwakura
I have legacy database, created ActiveRecord classes for each table. Please, suggest. a plugin if it exists to just browse and view data in that database. Thanks. -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because

[Rails] Re: How can I let rails working on non-block mode?

2009-03-30 Thread Conrad Taylor
On Mon, Mar 30, 2009 at 12:28 AM, Zhao Yi rails-mailing-l...@andreas-s.netwrote: Siddick Ebramsha wrote: The logs will be in the log/development.log file. Can I specify a log file? Hi, you should be able to configure the log_path by adding it to the initializer block in your

[Rails] Re: RubyonRails GUI for Leopard?...

2009-03-30 Thread Todd Blanchard
On Mac OS X I use XCode. It is quite good and free. Specifically, you want to use the XCode Organizer Just launch XCode and rather than create a project (which you don't need) go to the Window menu and choose Organizer. Drag the root folder from your rails project into the left outline pane

[Rails] Problem installing latest ROR from scratch

2009-03-30 Thread Alex
I just tried to setup ROR from scratch. I followed the instructions on http://rubyonrails.org/download which is aptly titled to Get Ruby On Rails in no time. However, I faced a couple of roadblocks along the way to a successful installation. To make a long story short: I had to manually find

[Rails] WTF Happened to ActionMailer?

2009-03-30 Thread Todd Blanchard
For the record, I'm upgrading from 2.0.2 ActionMailer works great on 2.0.2. I have a thank you email that I want sent as multipart mime so I have thanks.text.plain.erb and thanks.text.html.erb Then in my ActionMailer::Base subclass I have def thanks(order) recipients

[Rails] Re: need help converting SQL query to find or AR association

2009-03-30 Thread Frederick Cheung
On Mar 30, 6:53 am, vince stha...@gmail.com wrote: Thanks Stu.  The solution above works but I'm looking for a find statement that will perform a single db query (like the SQL statement I posted) versus performing multiple queries and adding them using ruby.  If a user has a hundred

[Rails] Re: pls,explain about search action

2009-03-30 Thread thitima panyayai
thank you very much for your help. it's work 2009/3/30 Siddick Ebramsha rails-mailing-l...@andreas-s.net Thiti Panya wrote: Hello, i want create web page for searching items in database. i try to run code to find items in script/console it's work.but i have problem about show results

[Rails] Re: Problem installing latest ROR from scratch

2009-03-30 Thread Ramon Tayag
Just in case you don't get any replies, try it out on a Linux virtual machine (maybe virtualbox.org). Most of the howtos you find online are OSX or Linux related and I've just found it easier to use Rails on that platform. Ramon Tayag On Mon, Mar 30, 2009 at 11:34 AM, Alex

[Rails] Re: Long ass redirect with Ruby 1.9.1

2009-03-30 Thread David Beckwith
BTW, is there a way to find out what's going on at that line that's taking a super long time with some kind of profiling software? On Mar 30, 4:54 pm, David Beckwith dbitsoluti...@gmail.com wrote: It took 4 seconds to get redirected to the show page.  Is this a known Ruby 1.9.1  or Rails 2.3.2

[Rails] Re: Please suggest plugin to browse and view data in database

2009-03-30 Thread Siddick Ebramsha
You can try the `active_scaffold` plugin. Web Page : http://activescaffold.com/ -- 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] Re: will_paginate and SEO

2009-03-30 Thread Uri
i think you should add a record in you routes.rb file that includes the page, for example: map.connect 'archive/:id', :controller = 'articles', :action = 'list', :page = 1 map.connect 'archive/:id/:page', :controller = 'articles', :action = 'list' these rows do on more thing, they change the

[Rails] Re: Long ass redirect with Ruby 1.9.1

2009-03-30 Thread David Beckwith
I forgot to mention that I am using Phusion Passenger. On Mar 30, 4:54 pm, David Beckwith dbitsoluti...@gmail.com wrote: It took 4 seconds to get redirected to the show page.  Is this a known Ruby 1.9.1  or Rails 2.3.2 issue? Processing SitesController#create (for 127.0.0.1 at 2009-03-30

[Rails] Observe_field and habtm checkboxes

2009-03-30 Thread Enzo Rivello
Is possible to assign a observe_field to an array of habtm checkboxes? right now, every checkboxes has id like customer[tiprod_ids][] , but if i create an observe field to check that id, only the first one works, the other not :-(. someone can help me? -- Posted via http://www.ruby-forum.com/.

[Rails] Re: Long ass redirect with Ruby 1.9.1

2009-03-30 Thread David Beckwith
Oh I think it's cuz im calling a generator after the create method executes. On Mar 30, 4:54 pm, David Beckwith dbitsoluti...@gmail.com wrote: It took 4 seconds to get redirected to the show page.  Is this a known Ruby 1.9.1  or Rails 2.3.2 issue? Processing SitesController#create (for

[Rails] Re: will_paginate and SEO

2009-03-30 Thread Conrad Taylor
On Sun, Mar 29, 2009 at 3:03 AM, Aldo Italo rails-mailing-l...@andreas-s.net wrote: i have noted a problem in will_paginate : In a pagination, when go to pages geather than 1 value thath' ok, but if you back to page 1 in the URL appear the parameter page=1 this is bad for seo optimization,

[Rails] JQuery Ajax clash

2009-03-30 Thread Preethi Sivakumar
Hi, I'm having a search form which renders a table of search results. The search box is doing an ajax call. In my search results, i've JQuery scripts written for sorting and pagination and some other operations that i do with the table. The issue is, I'm not able to have ajax and jquery calls

[Rails] Re: will_paginate and SEO

2009-03-30 Thread Aldo Italo
my routes.rb have prior this question the path configured with /myaction/:page_id but this don't change logical point view of search engine: it view however a different url betwen .../mypage and .../mypage/1 i think the logical used by will_paginate for redisplay first page is mistaken,

[Rails] Re: Long ass redirect with Ruby 1.9.1

2009-03-30 Thread Conrad Taylor
On Mon, Mar 30, 2009 at 2:26 AM, David Beckwith dbitsoluti...@gmail.comwrote: I forgot to mention that I am using Phusion Passenger. What version of Phusion Passenger are you using? -Conrad On Mar 30, 4:54 pm, David Beckwith dbitsoluti...@gmail.com wrote: It took 4 seconds to get

[Rails] Export to PDF

2009-03-30 Thread Devi Rv
Dear All, How to export a dataset to PDF file. I wrote the following code for exporting a dataset to pdf file. I want the column name and column seperators(leave space for each column),Please find the attatched file, i want to seperate the values as explaned.How the same will be applied in

[Rails] Re: will_paginate and SEO

2009-03-30 Thread Uri
of course there shouldn't be 2 identical pages with different url... do you have also: /myaction, :page = 1 in my app i have both lines: /myaction, :page = 1 /myaction/:page_id and wiil_paginate have no problem setting the right link for the first page. On Mar 30, 1:55 pm, Aldo Italo

[Rails] Re: JQuery Ajax clash

2009-03-30 Thread Dharmdip Rathod
Preethi Sivakumar wrote: Hi, I'm having a search form which renders a table of search results. The search box is doing an ajax call. In my search results, i've JQuery scripts written for sorting and pagination and some other operations that i do with the table. The issue is, I'm not

[Rails] Re: Tutorials

2009-03-30 Thread vimal
http://guides.rubyonrails.org/ is good, check it out Regards, Vimal Das --~--~-~--~~~---~--~~ 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

[Rails] Re: JQuery Ajax clash

2009-03-30 Thread Preethi Sivakumar
Dharmdip Rathod wrote: jQuery.noConflict(); jQuery(document).ready(function($){ }); write this in javascript file from where you are callin function. Thanks Raghod :) I've added jQuery.noConflice(); in my application.html.erb and the second chunk of code is added in my file where i'm

[Rails] Re: JQuery Ajax clash

2009-03-30 Thread Dharmdip Rathod
Good ! -- 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 unsubscribe from

[Rails] Re: RubyonRails GUI for Leopard?...

2009-03-30 Thread Eric Fer
One more point for TextMate. Quite clean and lightweight. A few colleagues of mine are using MacVIM and they were using TextMate before that. See ya Eric Fer On Mar 28, 7:30 pm, zensuite zen.su...@gmail.com wrote: Hi everybody, I'm a web developer interested on moving to rubyonrails

[Rails] Re: Images and Alt Tags Acheiving Better Search Engine Ranking

2009-03-30 Thread Rimantas Liubertas
… Inside the Alt Tag There is no such thing. Once again: alt is the attribute. There are elements, tags, and attributes. They mean different things. Notice the additional attribute--alt. What does the alt attribute or tag do? Hover your mouse over the image to the left. Do you see the

[Rails] Re: Controller into the lib folder?

2009-03-30 Thread Alex
I'll have a look at it, thank you very much for your response! On 27 mar, 20:33, Andrew awa...@gmail.com wrote: I've never used them before, but you can look into using Rails Engines The engines plugin enhances Rails’ own plugin framework, making it simple to share controllers, helpers,

[Rails] Long ass redirect with Ruby 1.9.1

2009-03-30 Thread David Beckwith
It took 4 seconds to get redirected to the show page. Is this a known Ruby 1.9.1 or Rails 2.3.2 issue? Processing SitesController#create (for 127.0.0.1 at 2009-03-30 16:48:04) [POST] Parameters: {authenticity_token=UHSYgtPzfTEAHAqsqTVYWzFOeM7bSh6mUkgvZFY96CQ=, site={url=local.test2,

[Rails] Re: JQuery Ajax clash

2009-03-30 Thread Preethi Sivakumar
Preethi Sivakumar wrote: Dharmdip Rathod wrote: jQuery.noConflict(); jQuery(document).ready(function($){ }); write this in javascript file from where you are callin function. Thanks Raghod :) I've added jQuery.noConflice(); in my application.html.erb and the second chunk of code is

[Rails] Re:Tutorials

2009-03-30 Thread ravindra . kothuru
Hi, This is Ravindra. I am from Hyderabad. Can any one please suggest me any institute to learn Ruby Rails or any Tutorials. Thanking You, Ravindra.k --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails:

[Rails] Re: Controller into the lib folder?

2009-03-30 Thread Fernando Perez
Colin Law wrote: Why do you want to put a controller in the lib folder? That is what the controllers folder is for. 2009/3/27 Alex afolgue...@gmail.com You could create a plugin that defines controllers, models, etc so that you can more easily share code amongst various apps. I saw that

[Rails] Windows Production Apache Cluster. Mongrel sleeps

2009-03-30 Thread Chris Dekker
When running production mode on Windows 2003 using Apache and a proxy balancer mod and mod_rewrite to redirect to the mongrel instances, I sometimes get a Proxy Error thrown from Apache. Setup is done according to this guide:

[Rails] Re: Great discrepancy between Google Analytics and own counter

2009-03-30 Thread Fernando Perez
Has anyone got any experience with pageview counters and can you tell me if a factor 10 difference is acceptable? Because to me it seems it is quite a big and unreliable difference. Do you filter bots and spiders? Because they visit very often websites. Maybe google filters them and you

[Rails] Great discrepancy between Google Analytics and own counter

2009-03-30 Thread Chris Dekker
Got Google Analytics running on one of my websites. Google defines a pageview as the most occuring event. Every refresh, every link clicked to a different part of the page, even loading from cache is an additional pageview http://www.google.com/support/analytics/bin/answer.py?hl=enanswer=57164

[Rails] Re: Great discrepancy between Google Analytics and own counter

2009-03-30 Thread Greg Donald
On Mon, Mar 30, 2009 at 8:27 AM, Chris Dekker rails-mailing-l...@andreas-s.net wrote: Has anyone got any experience with pageview counters and can you tell me if a factor 10 difference is acceptable? Because to me it seems it is quite a big and unreliable difference. I found the same thing.

[Rails] Re: Restricted Textmate Command+T (jump to file)

2009-03-30 Thread Greg Donald
On Sat, Mar 28, 2009 at 12:55 PM, Fernando Perez rails-mailing-l...@andreas-s.net wrote: Someone on a Textmate list would probably know. I'm surprised that no one in this list didn't already run into this issue. Not all Rails users are Textmate users. Most of the Rails developers I know in

[Rails] Re: where can find open source rails forum code?

2009-03-30 Thread Greg Donald
On Sun, Mar 29, 2009 at 10:22 PM, ChandleWEi chandle@gmail.com wrote: Where can find open source rails forum code? I found Beast but Beast maybe close or not update for long time. Where can I  find some good forum I can use http://github.com/courtenay/altered_beast/tree/master --

[Rails] Re: Export to PDF

2009-03-30 Thread Siddick Ebramsha
Refer the following link : http://www.artima.com/rubycs/articles/pdf_writer4.html -- 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

[Rails] Re: Restricted Textmate Command+T (jump to file)

2009-03-30 Thread Robby Russell
Look in Preferences Advanced Folder References. There is a sexy regular expression for Folder Pattern... which you can modify to include the directories you want to ignore. I don't ignore 'spec', because I tend to jump to those files a lot. However, I do block 'vendor'. This also impacts your

[Rails] Re: Great discrepancy between Google Analytics and own counter

2009-03-30 Thread Colin Law
Is it not that GA only reports hits where the user has allowed his browser to send data to Google? I for example definitely do not want google knowing what I do so have disabled this. Or am I misunderstanding something? Colin 2009/3/30 Greg Donald gdon...@gmail.com On Mon, Mar 30, 2009 at

[Rails] Active record Query

2009-03-30 Thread Nick Hoyle
In my controller i am doing these querys. Query 1 astock = MyStock.find(:first,:select = Symbol, :conditions =[user_id = ?, session[:idnum]]) im wanting to find all the rows from my stock with that particular id. this works fine. i then do a second query Query 2 @stocks_load =

[Rails] Re: Active record Query

2009-03-30 Thread Colin Law
2009/3/30 Nick Hoyle rails-mailing-l...@andreas-s.net In my controller i am doing these querys. Query 1 astock = MyStock.find(:first,:select = Symbol, :conditions =[user_id = ?, session[:idnum]]) im wanting to find all the rows from my stock with that particular id. this works fine. I

[Rails] Re: Active record Query

2009-03-30 Thread Nick Hoyle
If you mean that it does not work if you do query 2 first, it may be because astock has not been found yet. If you mean it does not work if the query 1 is find(:all,..) then astock will be a collection so astock.Symbol is not valid. astock[0].Symbol might be, for example. thanks

[Rails] Re: Rendering partial and js together

2009-03-30 Thread bill walton
Hi Tam, On Mon, 2009-03-30 at 06:21 +0200, Tam Kbe wrote: Hello, I have a form on my page that is popup-like but actually part of the page. it works fine as I used in other page. In order to close it after submission. I do something like respond_to do|wants| wants.js

[Rails] Re: Active record Query

2009-03-30 Thread Colin Law
You can use astock.each or other methods to iterate the collection, but I think maybe I do not understand what you are trying to achieve. 2009/3/30 Nick Hoyle rails-mailing-l...@andreas-s.net If you mean that it does not work if you do query 2 first, it may be because astock has not

[Rails] Re: activerecord-jdbc-adapter 0.9 oracle number id problem

2009-03-30 Thread Sylvain
Thanks Guillaume, you're terrific ! On Mar 25, 5:27 pm, Guillaume Desrat guillaume.des...@rubyfrance.org wrote: Hi, I think I've found where the problem is. In the file lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.1/lib/ jdbc_adapter/jdbc_oracle.rb, there's this : module JdbcSpec

[Rails] Re: Active record Query

2009-03-30 Thread Colin Law
Forget about how you have done it so far for the moment. Is it possible to write out in one sentence what you want you want @stocks_load to contain? Find all the stocks where . 2009/3/30 Nick Hoyle rails-mailing-l...@andreas-s.net Colin Law wrote: You can use astock.each or other

[Rails] Re: Active record Query

2009-03-30 Thread Nick Hoyle
Colin Law wrote: Forget about how you have done it so far for the moment. Is it possible to write out in one sentence what you want you want @stocks_load to contain? Find all the stocks where . 2009/3/30 Nick Hoyle rails-mailing-l...@andreas-s.net find all stocks from stocks table

[Rails] Re: Active record Query

2009-03-30 Thread Colin Law
Is there any relationship between the Stocks table and the MyStocks table? 2009/3/30 Nick Hoyle rails-mailing-l...@andreas-s.net Colin Law wrote: Forget about how you have done it so far for the moment. Is it possible to write out in one sentence what you want you want @stocks_load to

[Rails] Re: Active record Query

2009-03-30 Thread Nick Hoyle
Colin Law wrote: You can use astock.each or other methods to iterate the collection, but I think maybe I do not understand what you are trying to achieve. 2009/3/30 Nick Hoyle rails-mailing-l...@andreas-s.net In the first query i am getting all the symbols for stocks where the user id is

[Rails] Printing pdf documents

2009-03-30 Thread EdTaupier
Is it possible to print existing pdf documents (located server side) directly to a client printer without using a viewer? Scenario: I have a list of reports on page where the client can check which reports they would like printed. Ideally, the print command would send all the selected reports

[Rails] How can I divide my Page into different Sections?

2009-03-30 Thread pwesner
Hello, I have the following Problem: On my site I'd like to have different sections like Community, Shop, etc to be accessed via domain.tld/ Community/Controller/... Its all in the same app and I am using restful Routes and Controllers. Is there a clean way to handle that with restful routes? I

[Rails] Re: Active record Query

2009-03-30 Thread Nick Hoyle
Colin Law wrote: Is there any relationship between the Stocks table and the MyStocks table? 2009/3/30 Nick Hoyle rails-mailing-l...@andreas-s.net yeah user_id in mystocks relates to the id in a table called users -- Posted via http://www.ruby-forum.com/.

[Rails] Re: activerecord-jdbc-adapter 0.9 oracle number id problem

2009-03-30 Thread Nick Sieger
On Wed, Mar 25, 2009 at 10:27 AM, Guillaume Desrat guillaume.des...@rubyfrance.org wrote: Hi, I think I've found where the problem is. In the file lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.1/lib/ jdbc_adapter/jdbc_oracle.rb, there's this : module JdbcSpec  ...  module Column

[Rails] Re: Active record Query

2009-03-30 Thread Colin Law
Sorry, I have lost track of the tables. Is there a Stocks table and a Mystocks table and a Users table, or just a Stocks table and a Users table? 2009/3/30 Nick Hoyle rails-mailing-l...@andreas-s.net Colin Law wrote: Is there any relationship between the Stocks table and the MyStocks

[Rails] Re: Active record Query

2009-03-30 Thread Nick Hoyle
Colin Law wrote: Sorry, I have lost track of the tables. Is there a Stocks table and a Mystocks table and a Users table, or just a Stocks table and a Users table? 2009/3/30 Nick Hoyle rails-mailing-l...@andreas-s.net My stocks table which stores the stocks a particular user has, stocks

[Rails] my bug, nefarious scraper or a legitimate browser plugin?

2009-03-30 Thread Jodi Showers
I've been faced the the following symptoms for some time. I have links coded as :post or :put, so I can make sure that bots aren't hitting particular links. But it something is either hitting them as :get through an error I've made (like link_to not working well in some browsers?), or

[Rails] Re: Invalid Authenticity Token?

2009-03-30 Thread Fernando Perez
Richie wrote: Had a read through that but couldn't find anything about what's happening here, thanks for posting appreciated. I'm thinking of just starting the app again in rails 2.2.2 it would only take 30 mins to get where I'm at, at least then I could follow the tutorial in the book and

[Rails] Re: couldn't find item with ID = 100

2009-03-30 Thread derm_w
On Mar 29, 1:59 pm, derm_w dermotw...@eircom.net wrote: Hi all. I'm new to rails and am learning my way by putting together a simple app. Many thanks Wouter for your reply. I've now got this:- def show @album = Album.find(params[:id]) unless @album

[Rails] Re: Invalid Authenticity Token?

2009-03-30 Thread Fernando Perez
Cool, lighthouse seems down at the moment so I can't check the tickets, and I cannot update my gems either because gems.github.com is timing out too. -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are

[Rails] Re: couldn't find item with ID = 100

2009-03-30 Thread Jodi Showers
Derm - On 30-Mar-09, at 12:11 PM, derm_w wrote: On Mar 29, 1:59 pm, derm_w dermotw...@eircom.net wrote: Hi all. I'm new to rails and am learning my way by putting together a simple app. Many thanks Wouter for your reply. I've now got this:- def show @album =

[Rails] Re: couldn't find item with ID = 100

2009-03-30 Thread Fernando Perez
I wonder what's amiss? Dermot. You don't read our posts... Use find_by_id or begin...rescue to trap the error. Enough now! -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[Rails] Re: Active record Query

2009-03-30 Thread Colin Law
I know it is not the question you want the answer to but I feel there is something not right about the database organisation. Warning bells ring when you say that you have stocks in two tables. If changing the database organisation is an option then I would suggest considering whether you would

[Rails] logger for script/runner or console in production mode

2009-03-30 Thread tonypm
Hi, When running in development mode, I have some model methods that I call via cron + script/runner. These were nicely writing information to the log file as a record of activity. However, in production mode, when calling model methods from script/ runner or script/console, nothing is added

[Rails] Should I install ruby 1.9?

2009-03-30 Thread Connor Batman
I've updated rails to 2.3.2, should I update ruby to 1.9? What are the advantages/disadvantages in doing so? I'm on os x. thanks -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[Rails] Re: Printing pdf documents

2009-03-30 Thread bill walton
Hi Ed, On Mon, 2009-03-30 at 08:14 -0700, EdTaupier wrote: Is it possible to print existing pdf documents (located server side) directly to a client printer without using a viewer? In a word, no. At least not to my knowledge. It's a security thing. Otherwise I could, knowing the address

[Rails] Re: couldn't find item with ID = 100

2009-03-30 Thread derm_w
Thank you Jodi and Fernando. Kind regards, Dermot. --~--~-~--~~~---~--~~ 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

[Rails] Re: Printing pdf documents

2009-03-30 Thread EdTaupier
yeah, I understand the network restrictions, etc. so I figured there wasn't any direct, easy way. Could it be possible to tie in the printing of these reports to the standard browser print function? I guess the main point of interest for me is to not have to display all the reports before

[Rails] Re: RubyonRails GUI for Leopard?...

2009-03-30 Thread Marnen Laibow-Koser
Todd Blanchard wrote: On Mac OS X I use XCode. It is quite good and free. Specifically, you want to use the XCode Organizer Just launch XCode and rather than create a project (which you don't need) go to the Window menu and choose Organizer. [...] Thanks; I'll try this! I've really

[Rails] Re: my bug, nefarious scraper or a legitimate browser plugin?

2009-03-30 Thread Frederick Cheung
On Mar 30, 4:09 pm, Jodi Showers j...@homestars.com wrote: I've been faced the the following symptoms for some time. I have links coded as :post or :put, so I can make sure that bots   aren't hitting particular links. But it something is either hitting them as :get through an error I've  

[Rails] Rails class cacheing in development mode

2009-03-30 Thread sweet61
I have a rails application that patches ActiveRecord with a hand-coded validator. The patch is made by adding the following lines in config/ environment.rb Rails::Initializer.run do |config| ... end class ActiveRecord::Base include MtLib::DBValidations end This works fine in production

[Rails] Re: Rails class cacheing in development mode

2009-03-30 Thread Frederick Cheung
On Mar 30, 6:20 pm, sweet61 st...@weet.demon.co.uk wrote: The error thrown is     ArgumentError (A copy of MtLib::DBValidations has been removed from       the module tree but is still active!): My question is what is the process that is followed when cache_class is set to false. Does

[Rails] Re: Should I install ruby 1.9?

2009-03-30 Thread Frederick Cheung
On Mar 30, 5:49 pm, Connor Batman rails-mailing-l...@andreas-s.net wrote: I've updated rails to 2.3.2, should I update ruby to 1.9? What are the advantages/disadvantages in doing so? Ruby 1.9 is the new kid on the block. It's where the future of ruby is headed and at a basic level is faster

[Rails] Re: Printing pdf documents

2009-03-30 Thread bill walton
On Mon, 2009-03-30 at 10:12 -0700, EdTaupier wrote: yeah, I understand the network restrictions, etc. so I figured there wasn't any direct, easy way. Could it be possible to tie in the printing of these reports to the standard browser print function? body onload=window.print() I guess the

[Rails] Re: Two level Navigational menus

2009-03-30 Thread JL Smith
Why are you expecting a rails plugin to provide an xhtml navigation menu? Why not just implement the drop down menu using simply xhtml (lists) and css? Try this: http://www.lwis.net/free-css-drop-down-menu/ Specifically: http://www.lwis.net/free-css-drop-down-menu/dropdown.ultimate.linear.html

[Rails] Re: Active record Query

2009-03-30 Thread Nick Hoyle
I feared you might say that! lol i think i might to go back to the drawing! Thanks again for your time and help! Much Appreciated Nick -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[Rails] Re: Rails class cacheing in development mode

2009-03-30 Thread sweet61
Thanks Frederick, That worked perfectly. I modified environment.rb as follows :- config.load_paths += %W( #{RAILS_ROOT}/lib/soap_clients/company # {RAILS_ROOT}/lib/mt_lib) # Make sure load_once_paths is a subset of load_paths config.load_once_paths += %W( #{RAILS_ROOT}/lib/mt_lib) On Mar

[Rails] Re: Problem installing latest ROR from scratch

2009-03-30 Thread JL Smith
Those instructions you linked to aren't platform specific. To install Rails on Windows, try the steps outlined in the first section of this article: http://www.smashingmagazine.com/2009/03/27/ultimate-beginners-guide-to-ruby-on-rails/ --~--~-~--~~~---~--~~ You

[Rails] Re: Active record Query

2009-03-30 Thread Ar Chron
Colin Law wrote: I know it is not the question you want the answer to but I feel there is something not right about the database organisation. Warning bells ring when you say that you have stocks in two tables. Bells of all sorts... Users may have multiple lots of the same stock purchased

[Rails] Problems with form_for(@message.attachments.build ...)

2009-03-30 Thread comopasta Gr
Hi, I'm puzzled by the next. I have messages that have attachments. I have an index action for the attachments where I list all the attachments that a message has. From the same index page I can also add new attachments to that message. For that I've been using the next form %

[Rails] No such file or directory - layouts/application.html.erb

2009-03-30 Thread Bharat Ruparel
This is very frustrating. I am defining a layout for my AdminsController class index action which is as follows: class AdminsController ApplicationController before_filter :signal_child_menu #current_tab :admin def index @child_menu = true @search_field = name @crust_types

[Rails] Re: No such file or directory - layouts/application.html.erb

2009-03-30 Thread Eric
On Mar 30, 11:43 am, Bharat Ruparel rails-mailing-l...@andreas-s.net wrote: What is it that I am missing here? %= render :file = layouts/application % That comports with your error, right? Seems too simple of a solution, but keep in mind that the application layout will be used automatically

[Rails] Superclass mismatch (Functional test)

2009-03-30 Thread Cameron Carroll
Hilo. I'm trying to build an app with TDD, but my first functional test is a mess. The example from the book fails, and I haven't found any information on this issue. When I run my test, it throws:

[Rails] Re: No such file or directory - layouts/application.html.erb

2009-03-30 Thread Bharat Ruparel
Eric wrote: On Mar 30, 11:43�am, Bharat Ruparel rails-mailing-l...@andreas-s.net wrote: What is it that I am missing here? %= render :file = layouts/application % That comports with your error, right? Seems too simple of a solution, but keep in mind that the application layout will be

[Rails] Cropped thumbnails with ImageScience

2009-03-30 Thread Demec
I have a Photo model (below) and as you can see I create some thumbnails. However I want to create a proportionally thymbnail, which basically will be a cropped version, so that the thumbnail will be a perfect square. I use attachment_fu and ImageScience to handle photo uploads. Can anyone help

[Rails] Re: Superclass mismatch (Functional test)

2009-03-30 Thread Frederick Cheung
On Mar 30, 7:58 pm, Cameron Carroll rails-mailing-l...@andreas-s.net wrote: Hilo. I'm trying to build an app with TDD, but my first functional test is a mess. The example from the book fails, and I haven't found any information on this issue. When I run my test, it throws:

[Rails] Trying to bind an appended partial that has REST_in_place attached to it with jquery?

2009-03-30 Thread tripdragon
In my create.js.erb view I am creating a new model in the view. On creation I want to have the appended partial in the dom and selectable so I can click it's name and run the plugin REST in place with Jquery. #create.js.erb $(#new_show).before('div id=flash_notice%= escape_javascript

[Rails] Re: Rails class cacheing in development mode

2009-03-30 Thread sweet61
Sorry Frederick. This issue is partly resolved but not quite. The problem I think is that I am patching ActiveRecord during initialization. I have stopped my validation code from being unloaded, however when activerecord is reloaded, or particularly my models then they are no longer patched.

[Rails] What's 'logger', really

2009-03-30 Thread Steve Dogers
Hi, I don't understand how we can just call 'logger' from any method, but when using observers we have to have it attached to some kind of object (usually the model of the object being observed). Why is that? What is logger exactly? -- Posted via http://www.ruby-forum.com/.

  1   2   >