[Rails] Re: Implementing a user activity log with STI. (?)

2009-08-12 Thread Ram
Nice. Went through a wiki article on Command Pattern. Very much the design i need. Will try to do that when I get back to the activity log :). Thanks. On Aug 13, 10:49 am, Robb wrote: > Thanks, Ram.  Yep, I realized that polymorphic associations is exactly > what I was talking about.  In my case

[Rails] Re: Implementing a user activity log with STI. (?)

2009-08-12 Thread Robb
Thanks, Ram. Yep, I realized that polymorphic associations is exactly what I was talking about. In my case, all the log info is private and per-user. Also, the only action is "view", so I have a simpler case than you. I just need to generate a list like, Today Document 452.242 Document 55

[Rails] Re: How did you start with open source?

2009-08-12 Thread Ar Chron
Milan Dobrota wrote: > :) I closed my wallet... [double :):)] -- 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 emai

[Rails] Re: Part time / Full time programmer wanted

2009-08-12 Thread LaughingNinja
I can send you my resume if your interested. My personal email is accountantg...@hotmail.com. Don't let the email fool you, I'm a Software Developer by trade with over 20 years experience doing so... Gary. On Aug 11, 4:23 pm, Todd S wrote: > We're looking for a qualified ruby on rails programme

[Rails] Re: Implementing a user activity log with STI. (?)

2009-08-12 Thread Ram
Hi Robb, I ended up writing a very crude solution and then stopped that to revamp later. I DO believe you are on the right track though. The only part that I havent figured out though is writing neat code for the actual message or sentence the user will read. Like, You edited the task - Change t

[Rails] Re: Activity Log - messages with links - Strategy?

2009-08-12 Thread Robb Shecter
On Aug 4, 9:53 pm, Ram wrote: > Hi Marnen, > > Will it be too complicated to generate the links in to helper method? > Maybe I should throw in a 'resource_id' field into activity_logs and > store the id of the task/project upon which anactivityis being > performed. That will help in generating me

[Rails] Implementing a user activity log with STI. (?)

2009-08-12 Thread Robb
Can anyone tell me if I'm on the right track? I think this isn't quite right: I want to implement an activity log for users. It'll show them a list of the objects they've viewed. I have, of course, many types of objects in the Rails program. I've thought that I'd make a log_entries table whic

[Rails] Restricting Multiple Logins

2009-08-12 Thread Alpha Blue
Can anyone provide me with a good article, screencast, or source on how to restrict multiple logins with rails? I'm using Restful Authentication with Acts As State Machine and have my login system configured with observers, activation keys, etc. I'm just trying to move forward a bit and restrict

[Rails] Re: Caching Model Constants

2009-08-12 Thread pharrington
On Aug 12, 10:52 pm, tispratik wrote: > Hi, > > Does anyone know of a good way of caching the constant variables in > the model. > I have constants in models whose values are based on finder methods. > > eg) TYPE_UNIV = Decode.find_by_name("University") > > When i access this constant from Contro

[Rails] Caching Model Constants

2009-08-12 Thread tispratik
Hi, Does anyone know of a good way of caching the constant variables in the model. I have constants in models whose values are based on finder methods. eg) TYPE_UNIV = Decode.find_by_name("University") When i access this constant from Controllers or Views or Model, i see a query running in DB e

[Rails] Logging Plugin

2009-08-12 Thread tispratik
Hi, Does anyone know how to understand the logs printed in development.rb I can understand certain parts of it but not all. Is there any documentation on it? Or any pretty printing plugin available which tells exactly whats going on?... i mean how can i tell if certain objects are fetched from t

[Rails] Re: Challenge for object_id, Garbage Value

2009-08-12 Thread Ruby on Rails
Thanks Fred , I am not getting that concept of ruby . We have nil.object_id is 4 ,are they fix for every value, i am not sure for this .By the way thanks for this.It's working now. Thanks Again Fred.. Have nice time . -- Posted via http://www.ruby-forum.com/. --~--~-~--~---

[Rails] Re: First hit on app takes a long time

2009-08-12 Thread Philip Hallstrom
Passenger will shut down it's rails instances after a certain amount of inactivity. So when you hit the site after a long absence it takes a second or two load up the rails instance (just like ./script/console takes a second or two). After that it's up and you don't have that lag. You're

[Rails] Re: First hit on app takes a long time

2009-08-12 Thread Jamey Cribbs
Things may have changed, but AFAIK, passenger does go to sleep after a period of no http activity on your site. What I ususally do is create a cron job that runs every 5 minutes and just hits the web server, something like: wget http://localhost or whatever. This ensures that passenger keeps r

[Rails] Re: Assignment with << ?

2009-08-12 Thread Conrad Taylor
On Wed, Aug 12, 2009 at 10:49 AM, brianp wrote: > > Thanks for the clarification everyone! > > I wouldn't have expected it to have different meaning depending on he > object/class type. I'll keep an eye out for that. > > On Aug 12, 9:40 am, Marnen Laibow-Koser s.net> wrote: > > Frederick Cheung

[Rails] Re: First hit on app takes a long time

2009-08-12 Thread davetron5000
Yes, I'm using passenger with a config like so: passenger.conf LoadModule passenger_module /usr/share/passenger/ext/apache2/ mod_passenger.so PassengerRoot /usr/share/passenger PassengerRuby /usr/bin/ruby PassengerLogLevel 2 httpd.conf RailsBaseURI /my_app The passenger.conf was configured by

[Rails] issues with ajax requests and user session

2009-08-12 Thread Jimmy
I'm using an exception notification plugin which sends me an email whenever an exception is raised on the rails server. Regularly I'm getting exception reports due to raising a PermissionDenied exception when a user has no access or because rails complains about an invalid authenticity token. I c

[Rails] Re: First hit on app takes a long time

2009-08-12 Thread Jamey Cribbs
Are you using Passenger? Jamey On Wed, Aug 12, 2009 at 8:22 PM, davetron5000 wrote: > > So, I've deployed my first rails app, however I'm the only one hitting > it for now. > > I've noticed that the first time I hit the app after some long period, > it takes a really long time to respond (2-3 s

[Rails] First hit on app takes a long time

2009-08-12 Thread davetron5000
So, I've deployed my first rails app, however I'm the only one hitting it for now. I've noticed that the first time I hit the app after some long period, it takes a really long time to respond (2-3 seconds). After that, it's very fast. At first, I thought it might be my VPS "waking up" from som

[Rails] errors.each_key throws undefined method error

2009-08-12 Thread Cali Wildman
I'm trying to create custom error messages and in doing so I thought I could access the validation errors each_key method. I know each_key isn't listed as a method for errors object but errors object is a hash right? When I look at the source of each method def each @errors.each_key { |attr| @e

[Rails] Re: link_to_remote question

2009-08-12 Thread Allen Walker
Found the problem: You need to put <%= javascript_include_tag :defaults %> as the last javascript_include_tag in the layout -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Grou

[Rails] Re: link_to_remote question

2009-08-12 Thread Allen Walker
One thing I forgot to add, I have a nested div actually b/c my layout has a div. So the above is really Could this be the problem? -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Go

[Rails] Re: Commands I will need to know in production

2009-08-12 Thread Marnen Laibow-Koser
Alpha Blue wrote: > Hehe Marnen, if I could stop overthinking things, you'd make my fiance a > happy woman. :) > > One day, perhaps. :) I'm not going to get involved in relationship counseling, except to say that your fiancée might have a point. (Then again, mine might say similar things ab

[Rails] Re: weird problem after deploy: application.html.erb does not lo

2009-08-12 Thread Adam Wilson
OK Just worked it out: In my layouts folder I had an old file called application.html.erb.old - for some reason rails was using that instead of application.html.erb in the same folder. So I removed the old one. And then it threw an error saying it cannot find application.erb... So I renamed

[Rails] Re: How did you start with open source?

2009-08-12 Thread Marnen Laibow-Koser
Milan Dobrota wrote: > :) I'm a cheapskate, I like Un*x, and I like sharing code with other people (sounds kinky, I know). Best, -- Marnen Laibow-Koser http://www.marnen.org mar...@marnen.org -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You r

[Rails] Re: fixtures, factories and the standard testing framework.

2009-08-12 Thread Marnen Laibow-Koser
Steve Ross wrote: [...] > Also consider using a mocking/ > stubbing framework. rSpec comes with one baked in, or you can use > Mocha or FlexMock. Best to only mock and stub in unit tests, as > acceptance tests are supposed to exercise the whole stack. I find that since I started using Machinist,

[Rails] Re: How did you start with open source?

2009-08-12 Thread Phlip
Milan Dobrota wrote: > :) Shortly after M$ charged my team several thousand dollars for the privilege corrupting our codebase until it could only use their feeb tools. That lead to a flameout of a perfectly good startup. Buh-bye! -- Phlip http://c2.com/cgi/wiki?ZeekLand --~--~--

[Rails] Re: weird problem after deploy: application.html.erb does not lo

2009-08-12 Thread Alpha Blue
A couple of things here. First, it's probably something simple. I'd make sure that your deployment folder layouts doesn't contain it there. Secondly, if you have a file that is mapped to root, check the views in that folder for index to see if it's in there. Third, have you mapped anything

[Rails] Re: Commands I will need to know in production

2009-08-12 Thread Alpha Blue
Hehe Marnen, if I could stop overthinking things, you'd make my fiance a happy woman. :) One day, perhaps. Okay, so is there a good resource for production commands that I should become familiar with or a few that are going to be performed a lot? I already have the capistrano commands bookmar

[Rails] Re: weird problem after deploy: application.html.erb does not lo

2009-08-12 Thread Marnen Laibow-Koser
Adam Wilson wrote: > Anyone...? > > Excuse the bump... I am just a bit baffled by this one! > Thx You couldn't even wait 24 hours before bumping? That just makes us less likely to want to bother to help you. Patience, grasshopper... :) Best, -- Marnen Laibow-Koser http://www.marnen.org mar..

[Rails] Re: Commands I will need to know in production

2009-08-12 Thread Marnen Laibow-Koser
Alpha Blue wrote: > I'm fairly certain this is an easy question to answer but I like to make > things more complicated than they need to be. Yes you do. Please stop. > > I notice that a lot of people have: > > RAILS_ENV=production > > .. in their environment.rb files > > I don't have this in

[Rails] SSH Tunnelling and Rails Development

2009-08-12 Thread Alpha Blue
So, I decided to use MySQL Query Browser to look over my database remotely through SSH. I'm currently on Windows Vista and had decided not to use PHPMYADMIN, mainly because others gave me good reasons not to via security issues. I opened up putty, configured SSH > Tunneling to point to localhos

[Rails] Commands I will need to know in production

2009-08-12 Thread Alpha Blue
I'm fairly certain this is an easy question to answer but I like to make things more complicated than they need to be. I notice that a lot of people have: RAILS_ENV=production .. in their environment.rb files I don't have this in mine on production but passenger/apache startup my app just fine

[Rails] link_to_remote question

2009-08-12 Thread Allen Walker
I have the simple view page: <%= link_to_remote "Turn on Alert", :url => {:controller => "alerts", :action => "new"} :update => "test1" %> Then in my controller I simply do if request.xhr? render :text => "AJAX Called" else redirect_to :back end It's hitting the request.xhr? block as I h

[Rails] How did you start with open source?

2009-08-12 Thread Milan Dobrota
:) -- 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 th

[Rails] Re: Problem with Mephisto blog and Passenger

2009-08-12 Thread Michael Graff
OK, sorry for the spam here :) This is when attempting to post a new article, but it also happens in liquid templates from time to time. Posting comments works, logging in does as well. This is using a slightly themed but otherwise stock template in terms of what is in the template files. Syst

[Rails] Re: weird problem after deploy: application.html.erb does not lo

2009-08-12 Thread Adam Wilson
Anyone...? Excuse the bump... I am just a bit baffled by this one! Thx Adam Wilson wrote: > I am having a weird problem: > > Just deployed an updated app to test on my server. > For some reason it does not load my layout, but some other default > layout, which looks like the below. I dont know

[Rails] Re: overriding std nested resources route

2009-08-12 Thread lunaclaire
thx... I had tried named routes, but something must not have been right... now I got it working as follows: map.contacts '/:username/contacts', :controller => 'contacts', :action => 'index' this gives me what I wanted. if I use: contacts_url(@user.username): I get: //c

[Rails] Re: Mapping a virtual route to phpmyadmin with rails

2009-08-12 Thread Alpha Blue
I found my solution and didn't use any of this. Here's what I did: I used MySQL Query Browser through an SSH tunnel on Putty The following guide worked great: http://www.vbmysql.com/articles/security/connecting-the-mysql-gui-tools-to-a-remote-server-through-a-firewall No more phpmyadmin :) --

[Rails] Re: Filter out or not showing event records that are in the past

2009-08-12 Thread Hassan Schroeder
On Wed, Aug 12, 2009 at 12:24 PM, kevin lee wrote: > > I have generated a simple event app to learn and try to debug > named_scope.  But still have problem.  My problem is still have not > figure out how to call the named_scope (i.e. Event.upcoming). Ex: named_scopes in a model: named_scope :m

[Rails] Re: Mapping a virtual route to phpmyadmin with rails

2009-08-12 Thread Alpha Blue
Marnen Laibow-Koser wrote: > As others have said, this is a dreadful idea. Set up a separate vhost > for it. > > And if you're using Webmin as I suggested, you may not need phpmyadmin > at all. (The mySQL module isn't as full-featured as PMA, but it may do > what you need.) Heya Marnen, Th

[Rails] Re: Mapping a virtual route to phpmyadmin with rails

2009-08-12 Thread Marnen Laibow-Koser
Alpha Blue wrote: > How do I setup a route to a virtual path in rails for phpmyadmin, if I > want to use that to look over my database? As others have said, this is a dreadful idea. Set up a separate vhost for it. And if you're using Webmin as I suggested, you may not need phpmyadmin at all.

[Rails] Bliptv ruby gem

2009-08-12 Thread esdevs
Does anybody have any experience with this? I am having issues installing it and running config.gem. Getting errors like "could not find gem" etc when running rake to install it. the two link references are: http://kellysutton.github.com/bliptv/ http://github.com/kellysutton/bliptv/tree/master

[Rails] Re: Filter out or not showing event records that are in the past

2009-08-12 Thread kevin lee
I have generated a simple event app to learn and try to debug named_scope. But still have problem. My problem is still have not figure out how to call the named_scope (i.e. Event.upcoming). Not knowing exactly how, I tried to invoked it in various spots in the controller and also the view t

[Rails] Re: Form validation/errors not working.

2009-08-12 Thread jhaagmans
You might want to try something like this: else flash[:warning] = @user.errors.full_messages.join("") render :action => "new" end and put <%= flash[:warning] %> somewhere in your view. There's also a way to get your model validations to show in the form, but I don't have an example of how t

[Rails] Re: Mapping a virtual route to phpmyadmin with rails

2009-08-12 Thread Alpha Blue
heimdull wrote: > this will protect phpadmin and also encrypt any traffic to and from > phpadmin. If you want to open phpadmin from your rails application > just use link_to "phpadmin", "https://yourserver/phpmyadmin"; thank you - this is the route I will go. -- Posted via http://www.ruby-foru

[Rails] Re: Mapping a virtual route to phpmyadmin with rails

2009-08-12 Thread heimdull
If you have apache as your frontend you should setup a https virtualhost and put this in the vh AuthType Basic AuthName "Restricted Site" AuthUserFile /usr/local/apache2/conf/passwd/passwords Require user username Order allow,deny Satisfy Any alias /phpmyadmin /va

[Rails] Re: Mapping a virtual route to phpmyadmin with rails

2009-08-12 Thread pharrington
On Aug 12, 1:38 pm, Alpha Blue wrote: > How do I setup a route to a virtual path in rails for phpmyadmin, if I > want to use that to look over my database? > > Say the path is at the following: > > myvirtualpath/admin/phpmyadmin/ > > If I went to .. > > http://mysite.com/myvirtualpath/admin/phpmy

[Rails] Deploying with Capistrano - scaling up

2009-08-12 Thread Krishna
Hi, this may be a stupid question but , just want to ask anyway.. I have a working rails application and capistrano deploy setup (cap deploy works great) on one machine..I want to add more machines preferably one for web server and another for a db. What steps do I need to take to make this work.

[Rails] Re: Mapping a virtual route to phpmyadmin with rails

2009-08-12 Thread s.ross
Is there any way I can convince you that phpmyadmin is a security hole waiting to happen? If not, then you might just be best off setting up a subdomain for it. Hunted and pecked from my iPhone On Aug 12, 2009, at 10:38 AM, Alpha Blue wrote: > > How do I setup a route to a virtual path in

[Rails] password + salt

2009-08-12 Thread brianp
Hey Again, So I'm still working through AWDwR and I've just completed the authentication section for users. I understand the idea behind salts and general authentication. The part I feel I'm missing is when the first salt is created and stored to the db. (I can post the code but I assume anyone w

[Rails] Re: Problem with method that performs a rake

2009-08-12 Thread Ar Chron
Michael Wright wrote: > hello, > > I am new to programming and am trying to create a clear_cache method. > This method is invoked when a submit button is pressed on a partial. > You *might* want to do this via a method call to the model after the update/save is completed. > > def clear_cache

[Rails] using attachment_fu to store mp3

2009-08-12 Thread Siddharth Ravichandran
Hi, I am trying to store mp3 files using the attachment_fu and I have managed to store it on the file system and the database as a blob. The problem is I dont know if saving it in the public folder of the file system is safe and when I store it as an longblob in the database how do i send it back

[Rails] Re: Assignment with << ?

2009-08-12 Thread brianp
Thanks for the clarification everyone! I wouldn't have expected it to have different meaning depending on he object/class type. I'll keep an eye out for that. On Aug 12, 9:40 am, Marnen Laibow-Koser wrote: > Frederick Cheung wrote: > > On Aug 12, 4:37 pm, Marnen Laibow-Koser > s.net> wrote: >

[Rails] Re: limiting who and see/update which record

2009-08-12 Thread Nik
Thanks Marnen, I will check it out. On Aug 11, 9:04 pm, Marnen Laibow-Koser wrote: > Nik wrote: > > [...] > > > If I want only relevanteditor(s) to see an article--relevant being > > defined as theeditor(s) is assigned to that very artcile--and also to > > update that artcile, as needed for edit

[Rails] Mapping a virtual route to phpmyadmin with rails

2009-08-12 Thread Alpha Blue
How do I setup a route to a virtual path in rails for phpmyadmin, if I want to use that to look over my database? Say the path is at the following: myvirtualpath/admin/phpmyadmin/ If I went to .. http://mysite.com/myvirtualpath/admin/phpmyadmin/ phpmyadmin will show up fine.. With rails if I

[Rails] Re: Problem with Mephisto blog and Passenger

2009-08-12 Thread kilari
Michael, I have been using Mephisto with Passenger and its working great.Try providing the stack trace. Thanks, Kilari. On Aug 12, 9:55 pm, M Graff wrote: > I seem to be getting a SystemStackError exception when > runningMephistounderPassenger. The trace I get has 149 lines of backtrace, > w

[Rails] autocomplete after update

2009-08-12 Thread Me
I am trying to just render an ajax request to display the values at a site when the user selects a site, I have this: <%= text_field_with_auto_complete :site, :name, :with => "'ci=' + element.value ", :after_update_element => remote_function( :url => { :controller => 'sites', :action => 'updates

[Rails] Re: Problem with method that performs a rake

2009-08-12 Thread Matt Jones
The chdir line is almost certainly wrong - going to RAILS_ROOT would be much more reliable. I'm also unsure what a novice programmer is doing shelling out to a 2.5 year old version of Rake. Is there some reason why you're stuck on 0.7.3? Hardcoding the path to the redirect is also incorrect - yo

[Rails] Re: Problem with Mephisto blog and Passenger

2009-08-12 Thread Marnen Laibow-Koser
M Graff wrote: > I seem to be getting a SystemStackError exception when running > Mephisto under Passenger. The trace I get has 149 lines of backtrace, > which seems large, but when looking at it I don't see any loops nor > other issues. I think this may actually be hitting a system limit. > >

[Rails] Re: I am very overwhelmed going to production and need help

2009-08-12 Thread Alpha Blue
woohoo I fixed it! I got rid of hectoregm-msyql-ruby and installed mysql gem I had forgotten that I had hectoregm installed for when I was going to ruby 1.9.1. That fixed the issue and my site launched! Still probably will be errors but here's what it looks like: http://ncaastatpages.com --

[Rails] Problem with Mephisto blog and Passenger

2009-08-12 Thread M Graff
I seem to be getting a SystemStackError exception when running Mephisto under Passenger. The trace I get has 149 lines of backtrace, which seems large, but when looking at it I don't see any loops nor other issues. I think this may actually be hitting a system limit. So, the question is, how do

[Rails] Re: I am very overwhelmed going to production and need help

2009-08-12 Thread Alpha Blue
Updated the new pastie with everything: http://pastie.org/581497 It contains: environment.rb with libs gems list rake gems and apache error logs -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribe

[Rails] Re: Assignment with << ?

2009-08-12 Thread Marnen Laibow-Koser
Frederick Cheung wrote: > On Aug 12, 4:37�pm, Marnen Laibow-Koser s.net> wrote: >> are methods in Ruby. �Not all methods are operators, but that's another >> syntactic issue. > > If we're being pedantic, then not all operators are methods: ! is not > a method, nor is ?: and != is hardwired to be

[Rails] Re: Form validation/errors not working.

2009-08-12 Thread Gabriel Bianconi
Yes, it goes to the view, but the errors doesn't appear in the view... How do I send them? On 12 ago, 05:43, jhaagmans wrote: > He might be saving it twice because turning an empty string into MD5 > will give an MD5 hash as well. I'm not sure whether that's also the > case in Rails, but it is in

[Rails] Re: I am very overwhelmed going to production and need help

2009-08-12 Thread Vince Hodges
For mislav-will-paginate I have the following in environment.rb: config.gem 'mislav-will_paginate', :version => '~> 2.3.8', :lib => 'will_paginate', :source => 'http://gems.github.com' The lib field is probably what you need (adjust the version as needed). Vince On Wed, Aug 12, 2009 at 9:29

[Rails] Re: I am very overwhelmed going to production and need help

2009-08-12 Thread Alpha Blue
Here's my current environment.rb file and my gems env information http://pastie.org/581497 I'm still unable to get rake gems:install to work or for my app to find the two gems I have already installed which work with IRB and require "rubygems" -- Posted via http://www.ruby-forum.com/. --~--~

[Rails] Like Google tasks

2009-08-12 Thread Abhishek shukla
Hello friends, I am looking out something similar functionality like google tasks do, i mean the behavior of the task popup window. Is there any Javascript library available which I can integrate Thanks Abhis --~--~-~--~~~---~--~~ You received this message because

[Rails] Re: I am very overwhelmed going to production and need help

2009-08-12 Thread Marnen Laibow-Koser
Alpha Blue wrote: > adding to my topic post above,.. > > When using config.gem in environment.rb are those case sensitive? Or, > lower case like requires? Always assume case sensitivity. Ruby is case-sensitive, and so are most *nix filesystems. Come to think of it, that's probably your prob

[Rails] Re: I am very overwhelmed going to production and need help

2009-08-12 Thread heimdull
It should be RedCloth NOT redcloth... On Aug 12, 8:52 am, Alpha Blue wrote: > Okay, lots of good info - thanks guys.  I'm making some headway.. here's > where I stand: > > First, I removed the requires in environment.rb > I added the config.gem statements for only redcloth and > mislav-will_pagi

[Rails] Re: I am very overwhelmed going to production and need help

2009-08-12 Thread Alpha Blue
adding to my topic post above,.. When using config.gem in environment.rb are those case sensitive? Or, lower case like requires? -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google G

[Rails] Re: Assignment with << ?

2009-08-12 Thread Frederick Cheung
On Aug 12, 4:37 pm, Marnen Laibow-Koser wrote: > Robert Walker wrote: > > Sijo Kg wrote: > >> Hi brianp > > >> The << operator has many different uses: A googling gave > > > Just a small clarification: << is not an operator, it is a method. It > > has whatever "meaning" that is defined by its c

[Rails] Deploying Controller Actions

2009-08-12 Thread doug
Let's say that one has a set of controller actions that he plans to deploy on a collection of different web sites. For the most part, any particular action on any given web site in the collection is the same as the corresponding action on any other web site in the collection. However, there can b

[Rails] Routes and Forms

2009-08-12 Thread Paul Brown
Hello Guys, I am totally new to rails so sorry if I ask some silly questions, I am also totally confused which is likely self inflicted! So I am learning rails and rjs - I have two models Manufacturers Models So Manufacturers would contain things like Ford, Aston Martin and Models would contai

[Rails] Re: In-place editing of attributes via an “ind ex” page...?

2009-08-12 Thread Marnen Laibow-Koser
Michael Williams wrote: > Hrm, it would appear that many of the links on the ActiveScaffold page > are broken our outdated. That kinda scares me. That's either new or a temporary problem. The plugin itself works pretty well. Best, -- Marnen Laibow-Koser http://www.marnen.org mar...@marnen.o

[Rails] Re: I am very overwhelmed going to production and need help

2009-08-12 Thread Alpha Blue
Okay, lots of good info - thanks guys. I'm making some headway.. here's where I stand: First, I removed the requires in environment.rb I added the config.gem statements for only redcloth and mislav-will_paginate I did a restart of my web server just to make sure everything is okay.. Passenge

[Rails] Re: In-place editing of attributes via an “ind ex” page...?

2009-08-12 Thread gberz3
Hrm, it would appear that many of the links on the ActiveScaffold page are broken our outdated. That kinda scares me. Still I'll check it out. I may end up just creating my own helpers in order to do in place editing. Although that means dusting off my AJAX knowledge and a few older books. ;)

[Rails] Re: I am very overwhelmed going to production and need help

2009-08-12 Thread Frederick Cheung
On Aug 12, 4:20 pm, heimdull wrote: > I'm not sure what user that you are running as BUT it looks like you > installed all the gems in your home directory. This might be an issue > if apache/passenger runs as a different user... > More than that if the user passenger runs as can't access the f

[Rails] Re: In-place editing of attributes via an “ind ex” page...?

2009-08-12 Thread Marnen Laibow-Koser
Michael Williams wrote: > Hi All, > > I'm looking to use "in_place_editor_field" on an "Index" page of > items. Basically I want to mimic spreadsheet functionality for pre- > existing line items in order to edit their attributes. [...] I believe ActiveScaffold will do this. It may work for you

[Rails] Re: Assignment with << ?

2009-08-12 Thread Marnen Laibow-Koser
Robert Walker wrote: > Sijo Kg wrote: >> Hi brianp >> >> The << operator has many different uses: A googling gave > > Just a small clarification: << is not an operator, it is a method. It > has whatever "meaning" that is defined by its class. << is most certainly an operator. It is also a met

[Rails] Re: I am very overwhelmed going to production and need help

2009-08-12 Thread Marnen Laibow-Koser
Alpha Blue wrote: > The title says it all - please bear with me. To let you know where I > stand, I have been working for up to 12 hours a day for 2 months and 2 > weeks trying to get my site ready for release. Yikes! Please see http://c2.com/cgi/wiki?SustainablePace . > In development (on >

[Rails] Re: I am very overwhelmed going to production and need help

2009-08-12 Thread Alpha Blue
ruby script/server => Booting Mongrel => Rails 2.3.3 application starting on http://0.0.0.0:3000 => Call with -d to detach => Ctrl-C to shutdown server .. no issues ruby script/server -e production => Booting Mongrel => Rails 2.3.3 application starting on http://0.0.0.0:3000 => Call with -d to d

[Rails] Re: I am very overwhelmed going to production and need help

2009-08-12 Thread heimdull
I'm not sure what user that you are running as BUT it looks like you installed all the gems in your home directory. This might be an issue if apache/passenger runs as a different user... Run sudo rake gems:install WARNING: Installing to ~/.gem since /usr/lib/ruby/gems/1.8 and /usr/bin

[Rails] Re: I am very overwhelmed going to production and need help

2009-08-12 Thread Frederick Cheung
On Aug 12, 3:57 pm, Alpha Blue wrote: > If I try script/console, sudo script/console etc., none of those > commands work from my app in linux.  It's as if the commands are not in > the right path. you need to type ruby script/console Fred > -- > Posted viahttp://www.ruby-forum.com/. --~--~---

[Rails] rake gems:install doesn't install gems listed on environments/development.rb

2009-08-12 Thread Lucas Húngaro
That's it. The command works for all gems listed on config/ environment.rb and even for environments/test.rb and environments/ production.rb (using: $ RAILS_ENV= sudo rake gems:install), but just ignores all gems listed on environments/ development.rb. Is this a know bug? --~--~-~--~~

[Rails] Re: form_for help needed

2009-08-12 Thread Greg Donald
On Wed, Aug 12, 2009 at 9:59 AM, bill walton wrote: > I haven't used Chrome but it's > difficult to believe that there aren't tools equivalent to Firebug, Live > Http Headers, etc. to assist developers targeting that platform.  If > there aren't The nightly PPA Chrome builds do provide some fairl

[Rails] Re: Assignment with << ?

2009-08-12 Thread Conrad Taylor
On Wed, Aug 12, 2009 at 6:19 AM, Robert Walker < rails-mailing-l...@andreas-s.net> wrote: > > Sijo Kg wrote: > > Hi brianp > > > > The << operator has many different uses: A googling gave > > Just a small clarification: << is not an operator, it is a method. It > has whatever "meaning" that is de

[Rails] Re: I am very overwhelmed going to production and need help

2009-08-12 Thread Alpha Blue
I'm not afraid of using linux and bash commands are fairly self-informative. The issue I have right now is I'm not sure where everything resides path wise so that I can export it correctly: echo $PATH /usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games: -- Posted via http://www.ruby-forum.

[Rails] Re: I am very overwhelmed going to production and need help

2009-08-12 Thread Jeffrey L. Taylor
Quoting Alpha Blue : > > The title says it all - please bear with me. To let you know where I > stand, I have been working for up to 12 hours a day for 2 months and 2 > weeks trying to get my site ready for release. In development (on > windows) it works perfectly. In production (on linux ubun

[Rails] Re: I am very overwhelmed going to production and need help

2009-08-12 Thread Alpha Blue
If I try script/console, sudo script/console etc., none of those commands work from my app in linux. It's as if the commands are not in the right path. -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are sub

[Rails] Re: form_for help needed

2009-08-12 Thread bill walton
On Wed, 2009-08-12 at 07:00 +0200, Rails List wrote: > I guess, we have to assume that the http verb being used by chrome > appear to be 'GET' rather than 'POST'. You shouldn't have to assume anything. I haven't used Chrome but it's difficult to believe that there aren't tools equivalent to F

[Rails] Re: I am very overwhelmed going to production and need help

2009-08-12 Thread Frederick Cheung
On Aug 12, 3:46 pm, Frederick Cheung wrote: > On Aug 12, 3:37 pm, Alpha Blue > wrote: > > > The title says it all - please bear with me.  To let you know where I > > stand, I have been working for up to 12 hours a day for 2 months and 2 > > weeks trying to get my site ready for release.  In de

[Rails] Re: Workling's spiraling memory usage

2009-08-12 Thread IdeaOfOrder
Hey Zac, I'm having this problem too. I have 3 worklings which start at about 50MB and have each grown to about 170MB, which eventually push into swap. I'm also looking for a fix. On Jul 28, 9:29 am, Zac Zheng wrote: > First of all, much thanks to Workling and Starling's creators. They are > gre

[Rails] Re: I am very overwhelmed going to production and need help

2009-08-12 Thread Rails List
Hey, there is nothing to worry. you are exactly in a position that I was in couple of weeks ago. I'll try my best. 1. Are you on a shared host or a dedicated environment? ( i guess you are on a shared host). 2. Did you check the path of your environment. Do they include your ruby/rails path

[Rails] Re: I am very overwhelmed going to production and need help

2009-08-12 Thread bill walton
Hi Joel, You might get the help you need here but this is primarily a dev list. You might also try requesting assistance on the rails-deploy list. Best regards, Bill On Wed, 2009-08-12 at 16:37 +0200, Alpha Blue wrote: > The title says it all - please bear with me. To let you know where I > st

[Rails] In-place editing of attributes via an “ind ex” page...?

2009-08-12 Thread gberz3
Hi All, I'm looking to use "in_place_editor_field" on an "Index" page of items. Basically I want to mimic spreadsheet functionality for pre- existing line items in order to edit their attributes. However, none of the "in_place_editor" examples I've seen provide any useful real- world application

[Rails] Re: I am very overwhelmed going to production and need help

2009-08-12 Thread Frederick Cheung
On Aug 12, 3:37 pm, Alpha Blue wrote: > The title says it all - please bear with me.  To let you know where I > stand, I have been working for up to 12 hours a day for 2 months and 2 > weeks trying to get my site ready for release.  In development (on > windows) it works perfectly.  In producti

[Rails] Re: I am very overwhelmed going to production and need help

2009-08-12 Thread Vince Hodges
Hi, A couple of things to try/check. 1) Look in the apache error logs for the virtual host, passenger may be reporting issues there. 2) Did you create the DB, migrate it, etc (I know you probably did, but when you get frustrated sometimes it's the basic things you forgot to do). Vince On Wed,

[Rails] I am very overwhelmed going to production and need help

2009-08-12 Thread Alpha Blue
The title says it all - please bear with me. To let you know where I stand, I have been working for up to 12 hours a day for 2 months and 2 weeks trying to get my site ready for release. In development (on windows) it works perfectly. In production (on linux ubuntu) it does not. I stopped usin

[Rails] Re: different titles

2009-08-12 Thread Philip Gavrilos
Philip Gavrilos wrote: > > hi! > > I want to have different titles in my weblog. > > in my app/views/layout/post.html.erb > > i have this in head: <%= controller.action_name %> :: webstic > blog :) > > thats fine if im in page that listing my blog articles! > > but if i chooce to view a pag

  1   2   >