Re: [Rails] Re: display records for today's date

2010-08-25 Thread Colin Law
On 25 August 2010 21:04, Tim Shaffer wrote: > > > On Aug 25, 3:35 pm, Bob wrote: >> Apologies if this should be separated into a separate thread but this >> reminded me of a question I had when writing some search methods >> recently. >> >> What, if any, are the differences between the following

[Rails] Sending Emails to Inbox

2010-08-25 Thread Saurabh Peshkar
Hi All, I am having a functionality of sending emails in my rails application. Sending the emails is working properly but sometimes the email goes to Inbox folder and sometime it goes to Spam folder. I am sending one email at a time, there is no bulk/mass emails. Does anyone have any idea regardi

[Rails] Having trouble with link breaks in a table

2010-08-25 Thread Bob Smith
I have table being filled by a partial. When the fields are filled, the fields end up together or not there for half a page. See below. My controller code and views are below.. controller: @single = Array.new for @h in households do if @h.people.count == 1 @single << @h

[Rails] Re: Update HABTM associations the restful way

2010-08-25 Thread Diego Suarez
David Furber wrote: > If you are adding member methods like "add_content" and > "delete_content" then you have left REST behind. > > I understand that a Service is a resource that has many Sections. The > content already exists, but you want to add it to another section. > > HABTM associations ar

[Rails] @cart.add_product(product)

2010-08-25 Thread pravin mishra
Any one can explain me in agile web development book in chapter Cart Creation depot_f/app/models/cart.rb class Cart attr_reader :items def initialize @items = [] end def add_product(product) @items << product end end depot_f/app/views/store/index.html.erb <%= button_to

[Rails] Re: paper clip plugin (dleting attachments)

2010-08-25 Thread Tony Mathew
sir actuallly the problem is in my model i am using has_attached_file, in its helper definition its deleting files from my public folder.so its getting deleted. is thre any methode to override that? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subsc

[Rails] Re: paper clip plugin (dleting attachments)

2010-08-25 Thread Tony Mathew
rajeevsharma86 wrote: > Try some thing like this > invoke this kind of method when needs to delete picture > > > def delete_photo > @object= User.find(params[:id]) > @object.update_attribute(:photo, nil) > @object.save > redirect_to @object > end > > > On T

[Rails] Re: Trying to get a list of households with one person in them

2010-08-25 Thread Bob Smith
On Aug 23, 7:18 pm, Sandy wrote: > On Aug 23, 6:48 pm, Rob Biedenharn > wrote: > > > > > On Aug 23, 2010, at 6:17 PM, Sandy wrote: > > > > On Aug 23, 5:05 pm, Rob Biedenharn > > > wrote: > > >> On Aug 23, 2010, at 4:15 PM, Colin Law wrote: > > >>> On 23 August 2010 21:03, Bob Smith wrote: > > >

Re: [Rails] paper clip plugin (dleting attachments)

2010-08-25 Thread rajeevsharma86
Try some thing like this invoke this kind of method when needs to delete picture def delete_photo @object= User.find(params[:id]) @object.update_attribute(:photo, nil) @object.save redirect_to @object end On Thu, Aug 26, 2010 at 10:24 AM, Tony Mathew wrote

[Rails] paper clip plugin (dleting attachments)

2010-08-25 Thread Tony Mathew
Hi All, i created an application to upload image files using paper clip plugin,its working successfully,alsoi had a page which l;ists all the images uploaded by the user.also there is a delete button to delete the image from db by entering value in the deleted_at fileld in database not remov

[Rails] Re: Re: Trying to find Rails' parameter parsing code

2010-08-25 Thread Marnen Laibow-Koser
Chris Mear wrote: > On 25 Aug 2010, at 19:04, Adam Lassek wrote: > >> Okay, that's what I needed to know. So this convention is limited to >> encoding nesting relationships for Hashes, denoting Array values, and >> it apparently originated from PHP. Still looking for the proper term >> for this co

[Rails] Re: Trying to make a user list from 2 fields

2010-08-25 Thread Bob Smith
On Aug 25, 5:17 pm, Sandy wrote: > On Aug 25, 10:39 am, Ar Chron wrote: > > > > > Sandy wrote: > > > On Aug 25, 4:00 am, Colin Law wrote: > > >> >> Combining the lists and putting them in alphabetical order will show a > > > >> Colin > > > > Ok, Bob, > > > > The problem now seems to be that ther

[Rails] Re: find does not raise exception

2010-08-25 Thread Tom Mac
Hi Edmond Thanks for your reply. The problem is not that. Even it enters in rescue, it does not render :file => "#{RAILS_ROOT}/public/404.html". But it continues execution and I get problem at @messages = message_thread.messages as nil.messages Thanks Tom -- Posted via http://www.ruby-for

[Rails] Layouts in Rails 3.0

2010-08-25 Thread Bharat Ruparel
I have an admin section in my rails 3 app. where I want to use a different layout than the main layouts/application.html.haml layout. Here is the snippet of the admin_controller.rb: class AdminController < ApplicationController current_section :admin layout :admin . . end Here are the

[Rails] Re: will_paginate

2010-08-25 Thread Jeff Chen
Yes, I put it before the end, then the is passed. But the undefined method `paginate' for # is happened again. On 8月25日, 下午5時58分, Frederick Cheung wrote: > On 25 Aug 2010, at 10:42, Jeff Chen wrote: > > > > > I write the config.gem 'will_paginate'  in the inside of > > environment.rb, but got

[Rails] Re: Re: Strange problem with "each"

2010-08-25 Thread Patrick L.
David J. Hamilton wrote: >> Hi Tim, >> I implemented your changes. Unfortunately, I still got the same error. I >> copied both the User and Jobs models, as well as the schema.rb file. >> >> Please let me know your thoughts. >> >> http://pastie.org/1116870 > > You have a minor typo in index.html.er

Re: [Rails] Re: Strange problem with "each"

2010-08-25 Thread David J. Hamilton
> Hi Tim, > I implemented your changes. Unfortunately, I still got the same error. I > copied both the User and Jobs models, as well as the schema.rb file. > > Please let me know your thoughts. > > http://pastie.org/1116870 You have a minor typo in index.html.erb <% unless @user.jobs == nil %

[Rails] Re: Update HABTM associations the restful way

2010-08-25 Thread David
If you are adding member methods like "add_content" and "delete_content" then you have left REST behind. I understand that a Service is a resource that has many Sections. The content already exists, but you want to add it to another section. HABTM associations are usually processed by a list of c

[Rails] Job: Remote from anywhere

2010-08-25 Thread Tin Drum
Did you read "Rework"? Do you like the ideas presented? Do you want to live anywhere you want? Do you want to work anytime you want? Are you good with Ruby and Rails? Does working remote make you more productive? Do you understand what not dropping the ball involves? Do you want to be the lead dev

[Rails] Re: Strange problem with "each"

2010-08-25 Thread Patrick L.
Tim Shaffer wrote: > On Aug 25, 9:09�pm, "Patrick L." wrote: >> Thanks much. > This is part of your problem: > > @user.jobs.find_by_user_id(@user.id, :all) > > Since you are accessing jobs through the @user instance, you don't > need to specify the "find by user id". Rails already knows to only

[Rails] Re: Strange problem with "each"

2010-08-25 Thread Tim Shaffer
On Aug 25, 9:09 pm, "Patrick L." wrote: > Hello all, > This is my first time setting up associations in Rails. A User :has_many > Jobs, and a Job :belongs_to a User. > > Take a peak at this code and tell me what you think. For some reason, > when I pull these jobs and try to iterate through to s

Re: [Rails] Re: Trying to find Rails' parameter parsing code

2010-08-25 Thread Chris Mear
On 25 Aug 2010, at 19:04, Adam Lassek wrote: > Okay, that's what I needed to know. So this convention is limited to > encoding nesting relationships for Hashes, denoting Array values, and > it apparently originated from PHP. Still looking for the proper term > for this convention, but that's good

[Rails] Strange problem with "each"

2010-08-25 Thread Patrick L.
Hello all, This is my first time setting up associations in Rails. A User :has_many Jobs, and a Job :belongs_to a User. Take a peak at this code and tell me what you think. For some reason, when I pull these jobs and try to iterate through to show a list of Jobs posted by a User, I get a strange e

[Rails] Multiple joins to the same table/association with different conditions

2010-08-25 Thread Michael Schuerig
I'm looking for a nice(!) way to specify multiple joins to the same table where there are different conditions on each one. I was hoping for something like this class Model < ActiveRecord::Base has_many :things scope :some_things, joins(:things).where('things.foo' => 'bar').

[Rails] Re: Re: Ruby on Rails IDE

2010-08-25 Thread Marnen Laibow-Koser
Michael Pavling wrote: > On 25 August 2010 22:20, Michael Pavling wrote: >> and has done since the first time I tried it in Jan 2009. > > Correction, it was April when I got debugging working :-) Good to know. Maybe the problem had to do with using JRuby on this project (which is a Swing/Monke

[Rails] Re: Ruby on Rails IDE

2010-08-25 Thread Michael Schuerig
On Wednesday 25 August 2010, Bill Walton wrote: > On Wed, Aug 25, 2010 at 3:22 PM, Michael Schuerig wrote: > > My ~/.netbeans/6.9 directory has grown to an amazing 856MB, largely > > consisting of downloaded updates, I reckon. > > Ouch. OTOH, that's like $0.10 worth of storage now, right? Yeah

[Rails] Re: Paperclip not saving images

2010-08-25 Thread Kaspir Ghost
Fernando Perez wrote: > > I fell into that trap a few times in the past, so now I can quickly > notice it ;-) > Well I will definitely have to remember this, because that was extremely frustrating haha. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are

Re: [Rails] Re: Ruby on Rails IDE

2010-08-25 Thread Michael Pavling
On 25 August 2010 22:20, Michael Pavling wrote: > and has done since the first time I tried it in Jan 2009. Correction, it was April when I got debugging working :-) -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group,

Re: [Rails] Re: Ruby on Rails IDE

2010-08-25 Thread Michael Pavling
On 25 August 2010 20:08, Bill Walton wrote: > Sorry to jump in mid-stream here, but > >> On Aug 25, 12:29 am, Michael Schuerig wrote: > >>> > > Last week! I just found it too big and bloated for Rails needs > > Make sure you're using the Ruby-only version of NB unless you really > need the ot

[Rails] Re: Trying to make a user list from 2 fields

2010-08-25 Thread Sandy
On Aug 25, 10:39 am, Ar Chron wrote: > Sandy wrote: > > On Aug 25, 4:00 am, Colin Law wrote: > >> >> Combining the lists and putting them in alphabetical order will show a > > >> Colin > > > Ok, Bob, > > > The problem now seems to be that there is a Household model which > > contains two fields

Re: [Rails] Re: Ruby on Rails IDE

2010-08-25 Thread Bill Walton
On Wed, Aug 25, 2010 at 3:22 PM, Michael Schuerig wrote: > My ~/.netbeans/6.9 directory has grown to an amazing 856MB, largely > consisting of downloaded updates, I reckon. Ouch. OTOH, that's like $0.10 worth of storage now, right? > Is there a way to delete the obsolete stuff without losing pr

[Rails] Re: Ruby on Rails IDE

2010-08-25 Thread Michael Schuerig
On Wednesday 25 August 2010, Bill Walton wrote: > Sorry to jump in mid-stream here, but > > > On Aug 25, 12:29 am, Michael Schuerig wrote: > >> > > Last week! I just found it too big and bloated for Rails needs > > Make sure you're using the Ruby-only version of NB unless you really > need t

Re: [Rails] Re: Bitnami Rubystack Remote SQLite DB

2010-08-25 Thread Peter De Berdt
On 25 Aug 2010, at 21:26, Xenio wrote: Well that's that. Thanks for the clarification. So now thats out the picture, what about this? Is there a way to have php execute within a Ruby App. Can I put a php file in the public directory that can access the DB in its default directory? Why would

[Rails] Re: display records for today's date

2010-08-25 Thread Tim Shaffer
On Aug 25, 3:35 pm, Bob wrote: > Apologies if this should be separated into a separate thread but this > reminded me of a question I had when writing some search methods > recently. > > What, if any, are the differences between the following two find > statements? > > On Aug 20, 2:33 am, Michael

[Rails] Re: Bitnami Rubystack Remote SQLite DB

2010-08-25 Thread Marnen Laibow-Koser
Please quote when replying. Otherwise it's impossible to follow the discussion. Xenio wrote: > Well that's that. Thanks for the clarification. So now thats out the > picture, what about this? > > Is there a way to have php execute within a Ruby App. Not really. > Can I put a php > file in th

[Rails] Re: Re: Know of a Linux or Windows editor / IDE with support for TDD for RoR?

2010-08-25 Thread Robert Walker
Bill Walton wrote: > You do see the test fail. Then you 'tell' it to generate the method. > Again, it was a very brief demo. I may schedule a follow-up with the > guy to see more. The thing that was really impressive is that he > didn't switch from one tool to another. The degree of integration

[Rails] Re: display records for today's date

2010-08-25 Thread Bob
Apologies if this should be separated into a separate thread but this reminded me of a question I had when writing some search methods recently. What, if any, are the differences between the following two find statements? On Aug 20, 2:33 am, Michael Pavling wrote: > On 20 August 2010 07:17, Srik

Re: [Rails] Re: Know of a Linux or Windows editor / IDE with support for TDD for RoR?

2010-08-25 Thread Bill Walton
Hi Marnen, On Wed, Aug 25, 2010 at 2:09 PM, Marnen Laibow-Koser wrote: > Perhaps you want Autotest?  Again, no IDE necessary. > > (But I think method autogeneration in this case would be dangerous. > Doesn't that mean you don't see the test fail?) You do see the test fail. Then you 'tell' it t

[Rails] Re: Bitnami Rubystack Remote SQLite DB

2010-08-25 Thread Xenio
Well that's that. Thanks for the clarification. So now thats out the picture, what about this? Is there a way to have php execute within a Ruby App. Can I put a php file in the public directory that can access the DB in its default directory? On Aug 25, 11:37 am, Peter De Berdt wrote: > On 25 Au

[Rails] Re: Know of a Linux or Windows editor / IDE with support for TDD for RoR?

2010-08-25 Thread Marnen Laibow-Koser
Bill Walton wrote: > Hi Adam, > > On Wed, Aug 25, 2010 at 1:43 PM, Adam wrote: >> Rake comes with great support for unit testing with Test::Unit out of the >> box, you don't need an IDE to hook it all up for you. You can define a >> Rake::TestTask and just run 'rake test'. Rails does this automat

Re: [Rails] Re: Ruby on Rails IDE

2010-08-25 Thread Bill Walton
Sorry to jump in mid-stream here, but > On Aug 25, 12:29 am, Michael Schuerig wrote: >> > > Last week! I just found it too big and bloated for Rails needs Make sure you're using the Ruby-only version of NB unless you really need the other stuff. There's definitely a difference. My first e

Re: [Rails] Know of a Linux or Windows editor / IDE with support for TDD for RoR?

2010-08-25 Thread Bill Walton
Hi Adam, On Wed, Aug 25, 2010 at 1:43 PM, Adam wrote: > Rake comes with great support for unit testing with Test::Unit out of the > box, you don't need an IDE to hook it all up for you. You can define a > Rake::TestTask and just run 'rake test'. Rails does this automatically. > RSpec comes with a

[Rails] Re: Ruby on Rails IDE

2010-08-25 Thread MattB
> Aptana, particularly > RadRails/Studio for Rails 3, had still many problems of their own, last > time I looked. If that was Aptana Studio 2, it might be worth another look at Studio 3 beta. Works great for me with Rails 3. I'm on a Mac though, so can't comment on how it looks or behaves under L

Re: [Rails] Know of a Linux or Windows editor / IDE with support for TDD for RoR?

2010-08-25 Thread Adam
Rake comes with great support for unit testing with Test::Unit out of the box, you don't need an IDE to hook it all up for you. You can define a Rake::TestTask and just run 'rake test'. Rails does this automatically. RSpec comes with a similar Rake task that's as easy to define. If you really want

[Rails] Re: Implementation of Sets in AR

2010-08-25 Thread Marnen Laibow-Koser
Owain wrote: > On Aug 25, 6:16�pm, Marnen Laibow-Koser wrote: >> >> object in your DB, I think. That will give you the queries you mention >> >> > pencil_booker, green >> > And maybe this is the difference, this table DOES exist in another >> > form in the RoR application that calls the webservice

[Rails] Re: Implementation of Sets in AR

2010-08-25 Thread Owain
On Aug 25, 6:16 pm, Marnen Laibow-Koser wrote: > Owain wrote: > > Marnen > > > Thank you for taking the trouble to reply. > > > On Aug 25, 5:40 pm, Marnen Laibow-Koser wrote: > >> Owain wrote: > > >> No, I think it does. You *want* each resource to be a separate object > >> in your application,

[Rails] Re: Trying to find Rails' parameter parsing code

2010-08-25 Thread Adam Lassek
Okay, that's what I needed to know. So this convention is limited to encoding nesting relationships for Hashes, denoting Array values, and it apparently originated from PHP. Still looking for the proper term for this convention, but that's good enough for now. On Aug 25, 12:48 pm, Marnen Laibow-Ko

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

2010-08-25 Thread Sven Koesling
> > I'll try to solve this with a locale and let You know... > > greetings > Sven hm, within a locale the german umlaute are allowed... -- 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

[Rails] Re: How can I use Rails Erubis templating standalone?

2010-08-25 Thread Kristian Mandrup
After a lot of experimentation and reverse engineering the Rails 3 ActionView code, I figured out this solution: http://gist.github.com/549965 Hope it can help others with a similar need ;) -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.

[Rails] Re: Trying to find Rails' parameter parsing code

2010-08-25 Thread Marnen Laibow-Koser
Marnen Laibow-Koser wrote: > [Please quote when replying.] > > Adam Lassek wrote: >> That's not all there is to it. There is also a convention using >> parentheses to combine parameters together. > > Never heard of this. Example? Oh, wait, are you talking about the (1i) used in date selectors?

[Rails] Re: Trying to find Rails' parameter parsing code

2010-08-25 Thread Marnen Laibow-Koser
[Please quote when replying.] Adam Lassek wrote: > That's not all there is to it. There is also a convention using > parentheses to combine parameters together. Never heard of this. Example? Best, -- Marnen Laibow-Koser http://www.marnen.org mar...@marnen.org -- Posted via http://www.ruby-foru

[Rails] Rails3/memcached issue

2010-08-25 Thread Eddie Eddie
Has anyone run into issues configuring memcached with rails3? It seems that my app always expects memcached to be on the default localhost:11211 even when my environment configuration says otherwise. Perhaps rails3 needs memcached to be configured elsewhere? Any help appreciated. Thanks, Ed -- P

[Rails] Recommend a gem/plugin for autocomplete in Rails3 using jQuery?

2010-08-25 Thread Andy
Can anyone recommend a good gem or plugin for autocomplete in Rails 3 that only needs jQuery? I need to search multiple fields and multiple objects and display them in a clickable auto-complete list. Would it be best to just build this myself? -- You received this message because you are subsc

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

2010-08-25 Thread Sven Koesling
> > thank You very much for this hint! I'll give it a try in my next > night-session.. > > greetings > Sven Oh my god. first of all, the mysql2 gem works fine - thanks for the hint! But there's one more thing: I have lots of notices in my rails app like "... wurde gelöscht". But whe

[Rails] Re: Trying to find Rails' parameter parsing code

2010-08-25 Thread Adam Lassek
That's not all there is to it. There is also a convention using parentheses to combine parameters together. On Aug 25, 12:26 pm, Marnen Laibow-Koser wrote: > Adam Lassek wrote: > > Using "person[address][street_address]" to denote a nested Hash > > structure is semantic, > > In what respect?  It'

[Rails] Re: Trying to find Rails' parameter parsing code

2010-08-25 Thread Marnen Laibow-Koser
Adam Lassek wrote: > Using "person[address][street_address]" to denote a nested Hash > structure is semantic, In what respect? It's abusing a particular form of HTTP parameter name, true, but that's about it. Rails' reservation of HTTP parameter names "controller" and "action" might be consid

[Rails] Re: Trying to find Rails' parameter parsing code

2010-08-25 Thread Adam Lassek
Using "person[address][street_address]" to denote a nested Hash structure is semantic, and it is not part of the spec. you might think it trivial, but not all frameworks behave in this way. So it is useful to note that this convention exists and explain its rules. Agreed? That's all I'm asking afte

[Rails] Re: Implementation of Sets in AR

2010-08-25 Thread Marnen Laibow-Koser
Owain wrote: > Marnen > > Thank you for taking the trouble to reply. > > On Aug 25, 5:40�pm, Marnen Laibow-Koser wrote: >> Owain wrote: > >> >> No, I think it does. �You *want* each resource to be a separate object >> in your application, and you *want* each resource to be a separate >> object

[Rails] Re: Implementation of Sets in AR

2010-08-25 Thread Owain
Marnen Thank you for taking the trouble to reply. On Aug 25, 5:40 pm, Marnen Laibow-Koser wrote: > Owain wrote: > > That could > > be done by serializing the Set object but then I lose the ability of > > database queries (in particular indexing performance gains) to do > > something like, show

[Rails] Re: Re: Storing a hash or array in the db

2010-08-25 Thread Marnen Laibow-Koser
Robert Walker wrote: > Madison Kelly wrote: >> Can I ask a follow-up quesiton on how to set this up? I will have a >> product >> that can belong to one or many sub-catagories which in turn belong to >> one or >> many catagories. The same subcatagory name can belong to two different >> catagories

[Rails] Re: Implementation of Sets in AR

2010-08-25 Thread Marnen Laibow-Koser
Owain wrote: > I am at the very early design stages of a web service to implement a > "booking engine". I want it to be a generic in so far as the resource > being booked could be anything, a tennis court, hotel room, ski chalet > or airline seat. It's up to the client (RoR) application calling t

[Rails] Re: How can I use Rails Erubis templating standalone?

2010-08-25 Thread Kristian Mandrup
I found the file 'actionpack/template/template_test.rb', which shows how to run simple templates: def test_basic_template @template = new_template assert_equal "Hello", render end def test_locals @template = new_template("<%= my_local %>") assert_equal "I'm a local", render(

Re: [Rails] Re: passing a hash to a view

2010-08-25 Thread Hassan Schroeder
On Tue, Aug 24, 2010 at 6:06 PM, Dave Castellano wrote: (sorry for the delay in responding, driving from Chicago to San Jose) > I assume I would have to > split my database into a "questions" and related "answers" table > (currently questions and answers are attributes of "Question" in the > sam

[Rails] Implementation of Sets in AR

2010-08-25 Thread Owain
I am at the very early design stages of a web service to implement a "booking engine". I want it to be a generic in so far as the resource being booked could be anything, a tennis court, hotel room, ski chalet or airline seat. It's up to the client (RoR) application calling the webservice to dete

[Rails] Know of a Linux or Windows editor / IDE with support for TDD for RoR?

2010-08-25 Thread Bill Walton
I saw a demo of VisualStudio's support for TDD for C++ (or C#, I can't recall which) this past weekend and was impressed. Anybody know of an editor or IDE for Linux (Ubuntu specifically) or Windows that has built-in support for TDD for either Ruby or Rails? -- You received this message because y

[Rails] How can I use Rails Erubis templating standalone?

2010-08-25 Thread Kristian Mandrup
Hi, I am trying to write an RSpec 2 extension, which lets me test my templating view logic standalone without loading the "full rails", including controller, routes etc. etc. I simply want to be able to take a String in the form of a valid ERB template and render it, where the @outputbuffer is on

Re: [Rails] Re: Bitnami Rubystack Remote SQLite DB

2010-08-25 Thread Peter De Berdt
On 25 Aug 2010, at 17:29, Xenio wrote: I wasn't sure if this still fell under ROR or not. I figured since I was usiing the Bitnami Rubystack that isntalls everything at once I was maybe hoping someone else who uses that deployment package might have a hint. But I will look into the PHP, SQLite

[Rails] Re: Bitnami Rubystack Remote SQLite DB

2010-08-25 Thread Xenio
Cool thanks for the direction. I wasn't sure if this still fell under ROR or not. I figured since I was usiing the Bitnami Rubystack that isntalls everything at once I was maybe hoping someone else who uses that deployment package might have a hint. But I will look into the PHP, SQLite forums and

Re: [Rails] Re: Re: Ruby on Rails IDE

2010-08-25 Thread Iain Davis
> Your attitude is similar enough to mine, if I understand it correctly, > that I suspect if you try a good graphical editor like KomodoEdit or > jEdit, you won't go back to Emacs in GUI situations. *grin*. Certainly possible. I think I tried KomodoEdit, but that was long while ago, who knows how

[Rails] Re: Bitnami Rubystack Remote SQLite DB

2010-08-25 Thread Marnen Laibow-Koser
Xenio wrote: > This situation is that I have an iphone app in development that uses > the db. I just need to make the admin interface to edit the needed > data. I'm starting to think Ruby was the worst choice for somethign > non-standard like this. Maybe; maybe not. It's not clear from your descr

[Rails] Re: Bitnami Rubystack Remote SQLite DB

2010-08-25 Thread Xenio
This situation is that I have an iphone app in development that uses the db. I just need to make the admin interface to edit the needed data. I'm starting to think Ruby was the worst choice for somethign non-standard like this. But I'm pretty far in and I finished everything except the part where

[Rails] Re: Re: Ruby on Rails IDE

2010-08-25 Thread Marnen Laibow-Koser
Iain Davis wrote: > This is discussion has been very helpful to me: I'm learning Rails > (and Ruby), so far I've primarily been using Emacs and command line. > But I also I had given NetBeans (and a couple of other IDEs) a brief > try on the off-chance that I was missing out on something that I wou

Re: [Rails] Re: Ruby on Rails IDE

2010-08-25 Thread Iain Davis
This is discussion has been very helpful to me: I'm learning Rails (and Ruby), so far I've primarily been using Emacs and command line. But I also I had given NetBeans (and a couple of other IDEs) a brief try on the off-chance that I was missing out on something that I would like to have. I found

[Rails] Re: Bitnami Rubystack Remote SQLite DB

2010-08-25 Thread Marnen Laibow-Koser
Xenio wrote: > Also I have apache running off port 84 and my ROR app running off port > 3000. I can only get PHP to execute using the apache port. > > The issue is that I need to access the ROR db using the PHP file. > > How would I go about doing this so that the PHP script can "see" the > ROR d

[Rails] I Need Your Help Promoting Software Craftsmanship

2010-08-25 Thread Robert Dempsey
Hi everyone, I need your help. The purpose of Acts as Conference 2010 is to continue the momentum of the software craftsmanship movement, something we in the Ruby on Rails community care a lot about. I need your help in spreading the word to make it happen. Please help by embedding the video link

[Rails] Re: Bitnami Rubystack Remote SQLite DB

2010-08-25 Thread Xenio
Also I have apache running off port 84 and my ROR app running off port 3000. I can only get PHP to execute using the apache port. The issue is that I need to access the ROR db using the PHP file. How would I go about doing this so that the PHP script can "see" the ROR db file located in its defau

[Rails] Re: Trying to make a user list from 2 fields

2010-08-25 Thread Ar Chron
Sandy wrote: > On Aug 25, 4:00�am, Colin Law wrote: >> >> Combining the lists and putting them in alphabetical order will show a >> >> Colin > > Ok, Bob, > > The problem now seems to be that there is a Household model which > contains two fields, name and sname, each of which is the full name Y

[Rails] Re: Threads in rails

2010-08-25 Thread Marnen Laibow-Koser
Mike Disuza wrote: > Hi, > I have to use the threads in my application . Why? What are you trying to achieve? Just asking for a specific implementation is not likely to be that helpful... > Can anyone point me to any available tutorial of threads? > > Thanks, > Mike Best, -- Marnen Laibow-Ko

Re: [Rails] Threads in rails

2010-08-25 Thread Edmond Kachale
2010/8/25 Mike Disuza > Hi, > I have to use the threads in my application . > Can anyone point me to any available tutorial of threads? > Threading is not common in Rails. I just helped you googling for it. http://bibwild.wordpress.com/2007/08/28/threading-in-rails/ > > Thanks, > Mike > --- Ed

[Rails] Re: Rake aborted! on No Rakefile Found error

2010-08-25 Thread Dmitry Rogunov
Christopher Camplin wrote: > Neha Chopra wrote: >> This might be because your project doesnt contain the rake file. > > I think you need to make sure you have logged into your project using: > > $ cd myapp > > or similar Thank you that helped! Tags: "rake generate_session_store" "No Rakefile f

[Rails] Update HABTM associations the restful way

2010-08-25 Thread Diego Suarez
Hello, Sorry if this has been answered in old posts, I couldn't find anything. This has been killing me all the morning :-( I'm a bit new to REST, and I'm trying to model my app routes 'restfully', but I get lost on many things. I've been searching how to do this with resources: I have a Service m

[Rails] Re: ActiveScaffold search problem

2010-08-25 Thread Zack Nathan
Thanks for the quick reply! I dont think making it a primary_key will fix it. I came up with an idea of haveing a custom search form with a dropdown menu of all the users and the value that would be passed would be an id. I just dont know how to do that. I also dont quite get what you mean by "

[Rails] Re: Trying to make a user list from 2 fields

2010-08-25 Thread Sandy
On Aug 25, 6:04 am, Sandy wrote: > On Aug 25, 4:00 am, Colin Law wrote: > > > > > On 25 August 2010 08:02, Frederick Cheung > > wrote: > > > > On Aug 25, 7:53 am, Bob Smith wrote: > > > >> The problem I'm having is in combining these two name lists into one > > >> list, then putting it in al

Re: [Rails] ActiveScaffold search problem

2010-08-25 Thread Edmond Kachale
2010/8/25 Zack Nathan > Ok so I have two problems with activescaffold and searching. The first > is an error I get when trying to search with the advance active scaffold > search plugin. nothing happens and I get this error on the page: > > ActionController::UnknownAction (No action responded to

[Rails] Email functionality

2010-08-25 Thread pankaj
Hi All, I need my application to have a module with email functionality. This will have all functionalities of an email client. Each user will have an inbox, outbox, sent folder, custom folders, sub folders etc. They should be able to send, receive,forward, reply to emails. Is there any gem/plug

Re: [Rails] Re: Re: Trying to find Rails' parameter parsing code

2010-08-25 Thread Colin Law
On 25 August 2010 13:00, Marnen Laibow-Koser wrote: > Colin Law wrote: > [...] >> it is an >> overlying convention using field names to indicate the type and >> structure of the data. > > In a sense, that's *always* what field names do. > >> In that sense it is akin to the microformat >> concept.

Re: [Rails] find does not raise exception

2010-08-25 Thread Edmond Kachale
2010/8/25 Tom Mac > Hi > I have the code > > def index >@messages = message_thread.messages > end > > private > > def message_thread >begin > current_user.message_threads.find(params[:thread_id]) >rescue ActiveRecord::RecordNotFound > The problem is here: > logger.wa

[Rails] Re: Re: Trying to find Rails' parameter parsing code

2010-08-25 Thread Marnen Laibow-Koser
Colin Law wrote: [...] > I think I can see what the OP is getting at here, and do have some > sympathy with his point of view. The rails convention is that, for > example, an input field with the name > person[address][street_address] > is used to indicate that a hash of the form > { :person => {

[Rails] ActiveScaffold search problem

2010-08-25 Thread Zack Nathan
Ok so I have two problems with activescaffold and searching. The first is an error I get when trying to search with the advance active scaffold search plugin. nothing happens and I get this error on the page: ActionController::UnknownAction (No action responded to update_table. Actions: attributes

[Rails] find does not raise exception

2010-08-25 Thread Tom Mac
Hi I have the code def index @messages = message_thread.messages end private def message_thread begin current_user.message_threads.find(params[:thread_id]) rescue ActiveRecord::RecordNotFound logger.warn "No permission or thread_id nil" render :file => "#{R

[Rails] Re: Re: Re: How to have to a filter in activescaffold list

2010-08-25 Thread Zack Nathan
sorry :s, im just working with a deadline. Its a website for my local gym (needs to be done by friday) and so the names will not change. I did a google aswell, but I couldnt seem to find that, thanks though! -- Posted via http://www.ruby-forum.com/. -- You received this message because you are

Re: [Rails] Re: can not connect to the mysql database

2010-08-25 Thread Irfan Ahmed
I have solved all the previous problems today! thanks to all of you:) On 23 August 2010 18:56, Irfan Ahmed wrote: > Dear Gezope > Thanks for your inspiration, as I am new in this framework and of-course to > new real life programing concept!. Please help me if you feel free and have > time! I wa

Re: [Rails] can not execute ruby script/generate scaffold Product Admin

2010-08-25 Thread Irfan Ahmed
I have solved all the previous problems today! thanks to all of you:) On 24 August 2010 17:09, Irfan Ahmed wrote: > my ruby version is showing 1.8 and rails is 2.23 > > > On 24 August 2010 16:52, Jan Marquardt wrote: > >> On 08/24/2010 12:28 PM, Irfan Ahmed wrote: >> >>> in my depot application

[Rails] Threads in rails

2010-08-25 Thread Mike Disuza
Hi, I have to use the threads in my application . Can anyone point me to any available tutorial of threads? Thanks, Mike -- 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, se

[Rails] Re: Trying to make a user list from 2 fields

2010-08-25 Thread Sandy
On Aug 25, 4:00 am, Colin Law wrote: > On 25 August 2010 08:02, Frederick Cheung wrote: > > > > > On Aug 25, 7:53 am, Bob Smith wrote: > > >> The problem I'm having is in combining these two name lists into one > >> list, then putting it in alphabetical order. > >> Name is for head of househol

Re: [Rails] Re: will_paginate

2010-08-25 Thread Frederick Cheung
On 25 Aug 2010, at 10:42, Jeff Chen wrote: >> >> > > I write the config.gem 'will_paginate' in the inside of > environment.rb, but got below error msg: > > undefined local variable or method 'config' for main Object > > > How to fix it? Thanks. > You're probably putting it in the wrong

[Rails] Re: will_paginate

2010-08-25 Thread Jeff Chen
Dear On 8月24日, 下午4時01分, Frederick Cheung wrote: > On Aug 24, 8:36 am, Jeff Chen wrote: > > > Dear Madam/ Sir, > > > This is my first post, and I am stuck it for many months. > > > I have below error msg: > > > NoMethodError (undefined method `paginate' for #): > >   app/controllers/manage_contro

[Rails] Custom Layout Folder

2010-08-25 Thread Charanya Nagarajan
Hi all, I have a need to have another folder called custom-layouts which would have some of the layout files. My doubt is that,is it possible to have a folder like this and configure rails to look into this custom folder for layouts as we do for adding custom plugin paths in environment.rb. Any

Re: [Rails] Re: Trying to make a user list from 2 fields

2010-08-25 Thread Colin Law
On 25 August 2010 08:02, Frederick Cheung wrote: > > > On Aug 25, 7:53 am, Bob Smith wrote: > >> >> The problem I'm having is in combining these two name lists into one >> list, then putting it in alphabetical order. >> Name is for head of household, and sname is for a second person, >> either a

[Rails] Re: Rails 3: I18n.locale not set to I18n.default_locale in production

2010-08-25 Thread rainerfrey
This has most likely to do with a problem which was posted to the core mailing list here: http://groups.google.com/group/rubyonrails-core/browse_thread/thread/1fe3e88f9fe73177/ The culprit seems to be: I18n.locale is set to some value, if models include a module that requires some other files. Thu

  1   2   >