Re: [Rails] Re: Rails internals ?.

2010-04-24 Thread Colin Law
On 23 April 2010 22:54, Dani Dani li...@ruby-forum.com wrote: Thank you all. Why not use scaffold in production ? I know some are not keen on scaffolding, but personally I found it useful when getting started as it allows one to get to something that provides basic functionality without

Re: [Rails] help me pls:Tracking mails in rails

2010-04-24 Thread Colin Law
On 24 April 2010 05:43, Tony Augustine li...@ruby-forum.com wrote: hai friends  can  anone  help me to provide a way to implement the following  using  rails.  i  created a  mail campaign  application.if a   user   successfuly created a campaign he  will be  getting a mail. 1. how i can  

[Rails] Re: help me pls:Tracking mails in rails

2010-04-24 Thread Tony Augustine
Colin Law wrote: On 24 April 2010 05:43, Tony Augustine li...@ruby-forum.com wrote: hai friends �can �anone �help me to provide a way to implement the following �using �rails. �i �created a �mail campaign �application.if a � user � successfuly created a campaign he �will be �getting a mail.

[Rails] css RoutingError with 3.0.0.beta3

2010-04-24 Thread lgs
To have a shot at 3.0.0.beta3, I had just been trying rails g scaffold welcome , then it come up I get a routing error to css which will never display : Started GET /welcomes for 93.34.177.137 at 2010-04-24 08:52:49 Processing by WelcomesController#index as HTML Rendered

[Rails] Re: css RoutingError with 3.0.0.beta3

2010-04-24 Thread lgs
... i miss that no touch to config/routes.rb has been done after scaffold generation: r...@webby2066:/var/test/uno# rake routes (in /var/test/uno) GET/welcomes(.:format) {:controller=welcomes, :action=index} welcomes POST /welcomes(.:format) {:controller=welcomes,

Re: [Rails] Re: help me pls:Tracking mails in rails

2010-04-24 Thread Colin Law
On 24 April 2010 08:59, Tony Augustine li...@ruby-forum.com wrote: Colin Law wrote: On 24 April 2010 05:43, Tony Augustine li...@ruby-forum.com wrote: hai friends �can �anone �help me to provide a way to implement the following �using �rails. �i �created a �mail campaign �application.if a �

[Rails] New to rails - apparently need patch to use PostgreSQL

2010-04-24 Thread cootcraig
Help please. My first attempt at Rails, I'm trying to use PostgreSQL and I'm seeing this error. I'm also new to PostgreSQL, but the default encoding in PostgreSQL appears to be SQL_ASCII. I'm not sure if I should try and get the patch or try and change the PostgreSQL template. Sorry I'm so

[Rails] Ruby on Rails Developer requirement- 6+ months- Hillsboro, OR

2010-04-24 Thread arm...@winteccg.com
Let me know if you are interested Title: Ruby on Rails Web Application Developer Location: Hillsbroro, OR Duration: 6+ months Required Skills: Ruby on Rails framework. MY SQL, BRIO, HTML, CSS, AJAX, Oracle, UNIX, Linux Summary/Description of Position The Web Application Developer is

[Rails] Re: multiple view directories to achieve rails themes

2010-04-24 Thread rails.n...@gmail.com
Maybe I just need to ask it this way: At the end of every action the render function is called automatically with no options (unless the programmer explicitly calls it). Any clues as to how I would override that method to modify the folder path for the view files? Any tips would be heaps

Re: [Rails] Re: Rails 3 associations extra attributes with lazy loading

2010-04-24 Thread tommy xiao
This's what my think. use sql log you can see more details. 2010/4/24 Will Prater dataf...@gmail.com I've fixed my issues. Should have been using joins vs includes as there was really no joins happening with eager loading. On Apr 23, 11:14 am, Will Prater dataf...@gmail.com wrote: Hi,

[Rails] Searching activerecord result arrays include? does not work.

2010-04-24 Thread MJFuzz
I'm racking my brain with this and I know there's an easy way to do this. I have a Model.find result array. I need to check to see if a value exists in that array result. Array.include? always returns false I assume cause its an array of objects. So how do I search the resulting array?? -- You

[Rails] Re: New to rails - apparently need patch to use PostgreSQL

2010-04-24 Thread Marnen Laibow-Koser
cootcraig wrote: Help please. My first attempt at Rails, I'm trying to use PostgreSQL and I'm seeing this error. I'm also new to PostgreSQL, but the default encoding in PostgreSQL appears to be SQL_ASCII. You should always use UTF8 for your database. If you do that, you'll be able to

[Rails] Re: Searching activerecord result arrays include? does not work.

2010-04-24 Thread MJFuzz
Never mind.. I was searching on the value and not checking if the class exists in the array.. duh.. On Apr 24, 9:23 am, MJFuzz mjaff...@gmail.com wrote: I'm racking my brain with this and I know there's an easy way to do this. I have a Model.find result array. I need to check to see if a

[Rails] Re: multiple view directories to achieve rails themes

2010-04-24 Thread Marnen Laibow-Koser
rails.n...@gmail.com wrote: Maybe I just need to ask it this way: At the end of every action the render function is called automatically with no options (unless the programmer explicitly calls it). Any clues as to how I would override that method to modify the folder path for the view

[Rails] Re: Searching activerecord result arrays include? does not

2010-04-24 Thread Marnen Laibow-Koser
MJFuzz wrote: I'm racking my brain with this and I know there's an easy way to do this. I have a Model.find result array. I need to check to see if a value exists in that array result. Array.include? always returns false I assume cause its an array of objects. So how do I search the

[Rails] Re: Re: Rails internals ?.

2010-04-24 Thread Marnen Laibow-Koser
Colin Law wrote: On 23 April 2010 22:54, Dani Dani li...@ruby-forum.com wrote: Thank you all. Why not use scaffold in production ? I know some are not keen on scaffolding, but personally I found it useful when getting started as it allows one to get to something that provides basic

[Rails] Re: Rails internals ?.

2010-04-24 Thread arscariosus
Hello there. When I was starting with Rails last month, I have tried a lot of books and not finishing everyone of them. It was that the books I found was outdated, they're too technical for me to grasp or they just threw lines in which I have to type without explaining what they did sans Rails'

[Rails] Re: Ubuntu Linux Editor / Prettiefier

2010-04-24 Thread arscariosus
gedit + plugins works for me :D works like textmate, it has snippets that you could modify, auto indention, auto bracket completion and even an embedded terminal. plus the directory on the sidepane. syntax highlighting works on ruby, html, and css. On Apr 23, 11:53 pm, Greg Donald

Re: [Rails] Re: Re: Rails internals ?.

2010-04-24 Thread Colin Law
On 24 April 2010 14:34, Marnen Laibow-Koser li...@ruby-forum.com wrote: Colin Law wrote: On 23 April 2010 22:54, Dani Dani li...@ruby-forum.com wrote: Thank you all. Why not use scaffold in production ? I know some are not keen on scaffolding, but personally I found it useful when getting

[Rails] Re: Re: Re: Rails internals ?.

2010-04-24 Thread Marnen Laibow-Koser
Colin Law wrote: On 24 April 2010 14:34, Marnen Laibow-Koser li...@ruby-forum.com wrote: But what's going on is easy enough to understand and fundamental. I am not sure that it is necessarily easy to understand for the absolute beginner. Perhaps not, but it's necessary to understand it

Re: [Rails] Re: New to rails - apparently need patch to use PostgreSQL

2010-04-24 Thread Joshua Martin
You're using PostgreSQL on Ubuntu, right? On Sat, Apr 24, 2010 at 9:27 AM, Marnen Laibow-Koser li...@ruby-forum.comwrote: cootcraig wrote: Help please. My first attempt at Rails, I'm trying to use PostgreSQL and I'm seeing this error. I'm also new to PostgreSQL, but the default

[Rails] Re: List time zones?

2010-04-24 Thread pepe
Maybe this can help: include ActiveSupport TimeZone.all pepe On Apr 23, 10:51 pm, Morgan Morgan li...@ruby-forum.com wrote: Is there a way to list the time zones that rails makes available (it seems to function only on cities)? I figured out how to get that list at the command line in rake

[Rails] Re: New to rails - apparently need patch to use PostgreSQL

2010-04-24 Thread cootcraig
Actually my development server is FreeBSD. My workstation is Vista 64 and I'm using VirtualBox to run 2 VM's: FreeBSD as the server with PostgreSQL,Apache,Rails. Ubuntu as a client. I plan to reinstall PostgreSQL setting the template encoding to UTF8 I guess I'm not so much confused as slogging

[Rails] Re: First App- Error 500

2010-04-24 Thread Adrian Kukielka
Hello, I have readed whole topic and I have done everything what was wrote above but the error is still showing. I have attacher a photo with error message. I am complete newbie and simply I need some on start. Hope somebody will help me. Attachments:

[Rails] Re: Using AWS RDS with Rails

2010-04-24 Thread Marnen Laibow-Koser
Yudi Soesanto wrote: Thanks for your reply Bill. I don't have RDS instance set up yet. I am blank about RDS stuff. Maybe, you could help me? Any documentation how to setup RDS instance? Don't you think you could get that documentation more readily from Amazon/AWS's website? Why ask here?

[Rails] Json response with belongs_to

2010-04-24 Thread Fabio Kreusch
Hi all, Supponsing I have this: class Post ActiveRecord::Base end class Comment ActiveRecord::Base belongs_to :post end How can I make (on Rails 3) on the CommentsController to respond with a json object including the related Post? Thanks! -- You received this message because you are

[Rails] problem using attachment_fu with S3

2010-04-24 Thread Shai Sayfanaltman
Hi, My S3 bucket is located in the US I have attachment_fu working when using file system storage I have sw-swf upload plugin working with my S3 account but I can not get attachment_fu to work with S3 storage. the error I get is : AWS::S3::RequestTimeout in Upload filesController#create Your

[Rails] [ Allround deployment for Rails ] using nginx and passenger, best practice, how?

2010-04-24 Thread rubybox
Im ready setting up a CentOS 5.4 new secure server for hosting Rails applications, only the deployment setup is causing me mayor headaches. I use: - CentOS - PHP-PFM - Nginx - Ruby Enterprise and Passenger What I would like to do, and ask some advice for the tools I could best use for

[Rails] SAML for Ruby on Rails - we have it!

2010-04-24 Thread Thomas Pedersen
OneLogin has put together a SAML toolkit for Ruby on Rails and we're about to kick-off the implementation with two very successful Rails sites who will be adding SAML for their enterprise customers. We are providing the SAML toolkit free or charge and it will eventually be available on github for

[Rails] absolute beginner

2010-04-24 Thread octopushole
I am an absolute beginner. Tried to install RoR on our server. You can view the log at http://docs.google.com/Doc?docid=0AUIy-caPIiXgZDgzaDM0cV8xOTBnZm5ycWZnOAhl=en In the end, I was expecting some sort of answer to the command #which ruby instead, there is no answer as nothing was

[Rails] Rails (3) Engines and Plugins - How to mix application and vendor code?

2010-04-24 Thread hornairs
I'm trying to create several large applications that share 60-80 percent of their functionality. I'd like to find some way to abstract the common functionality into a gem, plugin, or engine which I can then deploy as many times as needed for each application. The catch is each app will definitely

[Rails] Re: Conditionally adding a link to a form -- how?

2010-04-24 Thread RichardOnRails
Hi Colin, I had to work on adding authenticated users to my app, so I had to back-burner the conditional-link issue. I nevertheless would like to keep trying to learn how to do this. Maybe CSS is the way to make the link switch between visible or not depending on context. (Just my inspiration

Re: [Rails] Re: Conditionally adding a link to a form -- how?

2010-04-24 Thread Hassan Schroeder
On Sat, Apr 24, 2010 at 2:53 PM, RichardOnRails richarddummymailbox58...@uscomputergurus.com wrote: I had to work on adding authenticated users to my app,  so I had to back-burner the conditional-link issue.  I nevertheless would like to keep trying to learn how to do this. You're making this

Re: [Rails] absolute beginner

2010-04-24 Thread Hassan Schroeder
On Sat, Apr 24, 2010 at 6:49 AM, octopushole octopush...@gmail.com wrote: In the end, I was  expecting some sort of answer to the command #which ruby instead, there is no answer as nothing was installed. Since everything in that log refers to 'ruby1.8', maybe you should try `which ruby1.8`;

Re: [Rails] Socket app on shared environment?

2010-04-24 Thread Hector Gonzalez
Hi, could anybody offer some insight on this? Thanks On Thu, Apr 22, 2010 at 4:53 PM, poolbastard hgc...@gmail.com wrote: Hi group, I'm just wondering if anyone has any experienced having a custom socket app, unique port, etc on a shared environment; I'm sort of convinced I would need at

[Rails] Re: Best way to handle multiple tables to replace one big ta

2010-04-24 Thread Mike P.
Marnen Laibow-Koser wrote: Mike P. wrote: Marnen Laibow-Koser wrote: Mike P. wrote: Hello, I've decided to use multiple tables for an entity (e.g. todo_items1, todo_items2, todo_items3, etc.), instead of just one main table which could end up having a lot of rows (e.g. just todo_items).

[Rails] iCalendar tzid not working?

2010-04-24 Thread reube...@gmail.com
I have an app where I'm trying to parse some data and output to an ics file. I'm using the iCalendar gem and can't figure out how to correctly add timezone tags to an event start and stop time. I have the timezone data being added correctly, however when I create a event, the DTSTART DTEND tags

[Rails] Re: Rails3 + PostgreSQL

2010-04-24 Thread Ginty
Yeah it works fine, worked since the first beta. On Ubuntu these are the packages I installed: sudo apt-get install postgresql postgresql-client postgresql-contrib libpq-dev Then all you need is the pg gem mentioned in your Gemfile. Maybe the fact you have the others installed is part of the

[Rails] help finding database items that lost parent item

2010-04-24 Thread Scott Kulik
I have a table for private messages similar to: PMS: title body sent_to (foreign key to users table) sent_from (foreign key to users table) When I originally set it up I didn't have it automatically a users pm's when that user was deleted. So...I have basically been manually updating the

[Rails] SQL error... :joins and :order in ActiveRecord find command

2010-04-24 Thread Louis-Pierre Dahito
Hi guys! There's a problem I'm dealing with since 2 days now and I haven't quite figured out what's wrong in my code. Here it is... Suppose I've got a pretty simple blogging app which has stories and comments. The comments belong to the stories... Here's the code: #app/model/story.rb class

Re: [Rails] problem using attachment_fu with S3

2010-04-24 Thread Vladimir Rybas
I can't see where problem is, but I could tell you - don't you use attachment_fu. Use paperclip. It so much faster and powerful. Just try it and I believe the problem will go away without time-eating solution. On Sun, Apr 25, 2010 at 1:57 AM, Shai Sayfanaltman li...@ruby-forum.comwrote: Hi,

[Rails] to nest or not to nest: RESTful style

2010-04-24 Thread Fearless Fool
In our world: There are many landlords. Landlords have many buildings. Buildings have many tenants. One way to structure the routes would be: /landlords/:landlord_id /landlords/:landlord_id/buildings/:building_id /landlords/:landlord_id/buildings/:building_id/tenants/:tenant_id ... which