Conrad Taylor wrote:
> Hi, did you add the rack gem to your gem file?
>
> -Conrad
>
> Sent from my iPhone
Hi, Conrad
I find method of solution about "no such file to load -- rack"
http://rvm.beginrescueend.com/integration/passenger/
=
in /opt/nginx/con
Hi,
Thank you for your reply.
Can I assume the method you stated is used when the values are inside
the database? Or does it work the same if it is not?
Thanks, once again.
Charanya Nagarajan wrote:
> Deb Liew wrote:
>> Dear all,
>>
>> I am pretty new to ruby on rails and I am supposed to cre
Rake paperclip:reprocess
Sent from my iPhone
On 05.04.2010, at 9:41, steve ross wrote:
On Apr 4, 2010, at 10:13 PM, bramu...@gmail.com wrote:
Hi All,
My application is using paperclip and its working fine without any
problems, I am able to generate the thumb images and big images from
actu
On Apr 4, 2010, at 10:13 PM, bramu...@gmail.com wrote:
>
> Hi All,
>
> My application is using paperclip and its working fine without any
> problems, I am able to generate the thumb images and big images from
> actual uploaded images. There are many images already uploaded by the
> users. Now I
*bump*
Does anyone have any idea on why it fails?
Marcelo.
On Fri, Apr 2, 2010 at 8:50 PM, Marcelo de Moraes Serpa wrote:
> Correction. SystemTimer works when binding, but *does not work* with the
> search / search2 method(s). If the LDAP server hangs for any reason,
> SystemTimer fails to kil
On Sun, Apr 4, 2010 at 8:39 PM, Andre Lewis wrote:
> On Apr 4, 4:40 pm, Conrad Taylor wrote:
> > Rails 3 locked/unlocked on my system takes less than .75 seconds on
> average.
>
> Conrad, Rails3 starts up in .75 sec for you? For comparison purposes,
> how many gems does our project include? What
Hi All,
My application is using paperclip and its working fine without any
problems, I am able to generate the thumb images and big images from
actual uploaded images. There are many images already uploaded by the
users. Now I want to create small images from the original uploaded
image. For the
Conrad Taylor wrote:
> Hi, did you add the rack gem to your gem file?
>
> -Conrad
>
> Sent from my iPhone
: - ) Thans! Conrad
I checked my app gem file :
sha-juns-Mac-Pro:gems shajun$ ls -la
total 0
drwxr-xr-x 32 shajun staff 1088 Apr 4 21:
On Apr 4, 4:40 pm, Conrad Taylor wrote:
> Rails 3 locked/unlocked on my system takes less than .75 seconds on average.
Conrad, Rails3 starts up in .75 sec for you? For comparison purposes,
how many gems does our project include? What version of Ruby are you
on?
My project uses only a few gems --
well..
To log a message from either a controller or a model, access the Rails
logger instance with the logger method:
class HomeController < ActionController::Base
def index
logger.info 'informational message'
end
end
>From outside a controller or model, you can pass the logger instanc
What's the best way to initialize logger and where to do it ?
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscrib
thanks, that really helped! rated all of you guys 5 stars :)
On Apr 4, 7:20 pm, Conrad Taylor wrote:
> On Sun, Apr 4, 2010 at 4:17 PM, Conrad Taylor wrote:
> > On Sun, Apr 4, 2010 at 2:01 PM, David Zhu wrote:
>
> >> can i comment out- map.resources :pages in my routes? or do i need
> >> that?
>
On Sun, Apr 4, 2010 at 3:16 PM, Andre Lewis wrote:
> On Apr 4, 1:16 pm, Jacques Crocker wrote:
> > If you run `bundle lock`, I believe it will be significantly faster
> > again. This does all the gem resolution up front so all bundle has to
> > do is include all the requires and go.
>
> You're r
On Sun, Apr 4, 2010 at 4:27 PM, Conrad Taylor wrote:
> On Sun, Apr 4, 2010 at 4:08 PM, David Zhu wrote:
>
>> Hey guys
>>
>> You know how by default the scaffold show view takes you to for ex-
>> www.blah.com/blahs/16?
>>
>> How would i replace that 16 with something else?... most preferably
>> th
On Sun, Apr 4, 2010 at 4:08 PM, David Zhu wrote:
> Hey guys
>
> You know how by default the scaffold show view takes you to for ex-
> www.blah.com/blahs/16?
>
> How would i replace that 16 with something else?... most preferably
> the title field or something
>
>
David, please take a look at the
Hey,
I'm wondering if there's a Rails app that displays folders in a
tree-like system to store things. Basically, something to organize
stuff.
I'm looking for something like how Firefox manages bookmarks - you know,
with all the folders and ability to drag here and there, tags
maybe...search...
On Sun, Apr 4, 2010 at 4:17 PM, Conrad Taylor wrote:
> On Sun, Apr 4, 2010 at 2:01 PM, David Zhu wrote:
>
>> can i comment out- map.resources :pages in my routes? or do i need
>> that?
>>
>>
> David, it really depends on what you're trying to do. It seems that you
> were using
> nested resources
On Sun, Apr 4, 2010 at 2:01 PM, David Zhu wrote:
> can i comment out- map.resources :pages in my routes? or do i need
> that?
>
>
David, it really depends on what you're trying to do. It seems that you
were using
nested resources. Thus, I would expect the following within your routes.rb:
map.r
Hey guys
You know how by default the scaffold show view takes you to for ex-
www.blah.com/blahs/16?
How would i replace that 16 with something else?... most preferably
the title field or something
What do i need to change in the routes? Thanks
--
You received this message because you are subsc
i got it-
http://www.akitaonrails.com/2007/12/12/rolling-with-rails-2-0-the-first-full-tutorial
Thanks guys for all the help
On Apr 4, 5:01 pm, David Zhu wrote:
> can i comment out- map.resources :pages in my routes? or do i need
> that?
>
> On Apr 4, 4:11 am, Srijith nair wrote:
>
> > Sorr
On Apr 4, 1:16 pm, Jacques Crocker wrote:
> If you run `bundle lock`, I believe it will be significantly faster
> again. This does all the gem resolution up front so all bundle has to
> do is include all the requires and go.
You're right -- startup improves quite a bit when you bundle lock:
~/pr
This thread is quite interesting. I'm curious to see how all this
plays out after the RCs and when optimization has been taken into
account... Thanks for posting this.
On Apr 4, 4:16 pm, Jacques Crocker wrote:
> I believe this is a bundler issue. I had the same issue and tracked it
> down to Bund
On Apr 4, 8:38 pm, Chris Habgood wrote:
> I am trying to form a string from values that get passed to the
> define_method then take the string and use it either set data in a db or do
> a .nil? on it just like any other attribute from the db.
>
Like I said, you can use send for this (which allo
On Apr 4, 8:15 pm, Conrad Taylor wrote:
> On Sun, Apr 4, 2010 at 11:46 AM, Chris Habgood wrote:
> > Is there not a way to form a string convert it to an attribute and then do
> > Model.(string converted to attribute)?
>
> Chris, you can do the following:
>
> class Dynamic
>
> name = foo
> i
can i comment out- map.resources :pages in my routes? or do i need
that?
On Apr 4, 4:11 am, Srijith nair wrote:
> Sorry!
> that was new method by mistake i had written it as find.
> map.resources :courses do |course|
> course.resources :pages
> end
>
> <%form_for :page,:url=>course_pages_path(@
Ok, slightly different question. What is the best way to in a model to
dynamically create a method:
you use define_method to create a method but how would I do it so I can do
something like:
m = model.new
m.update_my_attrs(true)
m.update_me_attrs(false)
I have 2 methods that are almost the same
Don Kowalski wrote:
>> Can you tried things without an IDE?
>
> one of the first things I tried
>
> I'm using the bluebprint css plugin which I've used before without
> issue. I've looked through the css's and actually don't find any
> reference to the tag.
I spoke to soon ...
blueprint css
I believe this is a bundler issue. I had the same issue and tracked it
down to Bundler.require which does the gem resolution and seems to
take *forever* with it.
If you run `bundle lock`, I believe it will be significantly faster
again. This does all the gem resolution up front so all bundle has t
Hi,
Sorry for the delay in answering. Just thought I'd let you know that
we added download links a couple of days after we announced the
videos. Although we're using Quicktime not a Flash player so you
should be able to queue them up in the browser and play them back when
you are without network
> Can you tried things without an IDE?
one of the first things I tried
I'm using the bluebprint css plugin which I've used before without
issue. I've looked through the css's and actually don't find any
reference to the tag.
--
Posted via http://www.ruby-forum.com/.
--
You received this m
I am trying to form a string from values that get passed to the
define_method then take the string and use it either set data in a db or do
a .nil? on it just like any other attribute from the db.
On Sun, Apr 4, 2010 at 2:15 PM, Conrad Taylor wrote:
> On Sun, Apr 4, 2010 at 11:46 AM, Chris Habgo
On Sun, Apr 4, 2010 at 12:22 PM, Don Kowalski wrote:
> Colin Law wrote:
> > On 3 April 2010 23:51, Don Kowalski wrote:
> >> Rails newbe here:
> >>
> >> Using link_to_unless_current and on my website it displays the the menu
> >> item and its entire path in () ...
> >>
> >> example:
> >> home (/)
Colin Law wrote:
> On 3 April 2010 23:51, Don Kowalski wrote:
>> Rails newbe here:
>>
>> Using link_to_unless_current and on my website it displays the the menu
>> item and its entire path in () ...
>>
>> example:
>> home (/)
>> about (/welcome/about)
>> register (/users/register) ... and so on.
>
On Sun, Apr 4, 2010 at 11:46 AM, Chris Habgood wrote:
> Is there not a way to form a string convert it to an attribute and then do
> Model.(string converted to attribute)?
>
>
Chris, you can do the following:
class Dynamic
name = foo
ivar = "@#{name}" # form the string
define_method( "
On Sun, Apr 4, 2010 at 10:50 AM, Chris Habgood wrote:
> Not looking at the value part looking at the attribute part. Is ex going
> to be dynamic to set the attribute name correctly?
>
>
Chris, you can dynamically set attributes by doing the following:
class Dynamic
define_method( "some_met
Is there not a way to form a string convert it to an attribute and then do
Model.(string converted to attribute)?
On Sun, Apr 4, 2010 at 12:59 PM, Chris Habgood wrote:
> Ok, I was also looking at testing for nil? and stuff as well not only
> setting the attr.
>
>
> On Sun, Apr 4, 2010 at 12:57 P
On Apr 4, 7:07 pm, Anderson Leite wrote:
> It's probably a begginers question...but, in a controller I have:
>
> logger = Logger.new(STDOUT)
> logger.info "Testing logger at controller"
>
> When running my app in my machine, I can see this log in
> log/development.log file.
>
> When runn
On Sun, Apr 4, 2010 at 10:57 AM, Andre Lewis wrote:
> Is anyone else seeing significantly worse performance after upgrading an
> app to Rails3?
>
> Two datapoints after upgrading an app:
>
> * an action that averages ~550ms in Rails2.3.5 averages nearly twice as
> long (1020ms) in Rails3beta2.
>
It's probably a begginers question...but, in a controller I have:
logger = Logger.new(STDOUT)
logger.info "Testing logger at controller"
When running my app in my machine, I can see this log in
log/development.log file.
When running in production, this log is not printed. Not even with
Ok, I was also looking at testing for nil? and stuff as well not only
setting the attr.
On Sun, Apr 4, 2010 at 12:57 PM, Frederick Cheung <
frederick.che...@gmail.com> wrote:
>
>
> On Apr 4, 6:50 pm, Chris Habgood wrote:
> > Not looking at the value part looking at the attribute part. Is ex goi
On Apr 4, 6:50 pm, Chris Habgood wrote:
> Not looking at the value part looking at the attribute part. Is ex going to
> be dynamic to set the attribute name correctly?
>
Take a look at the send method (or in the special case of active
record you could use update_attributes (or write_attribute a
Is anyone else seeing significantly worse performance after upgrading an app
to Rails3?
Two datapoints after upgrading an app:
* an action that averages ~550ms in Rails2.3.5 averages nearly twice as long
(1020ms) in Rails3beta2.
* startup time is much longer in Rails2. To demonstrate, I'm using r
Not looking at the value part looking at the attribute part. Is ex going to
be dynamic to set the attribute name correctly?
On Sun, Apr 4, 2010 at 12:23 PM, Conrad Taylor wrote:
> On Sun, Apr 4, 2010 at 9:29 AM, Me wrote:
>
>> How would I take the dynamic nature of define_method and also use t
On Sun, Apr 4, 2010 at 9:29 AM, Me wrote:
> How would I take the dynamic nature of define_method and also use that
> to set attributes:
>
> define_method ("#{ex}_method") do
> self.my_db_attribute_ex = value
> end
>
> Is there a way to set the attribute part dynamically?
>
>
Me, you would do som
How would I take the dynamic nature of define_method and also use that
to set attributes:
define_method ("#{ex}_method") do
self.my_db_attribute_ex = value
end
Is there a way to set the attribute part dynamically?
--
You received this message because you are subscribed to the Google Groups "R
Hi, did you add the rack gem to your gem file?
-Conrad
Sent from my iPhone
On Apr 4, 2010, at 8:13 AM, Jun Sha wrote:
Thank you for all your help!!!
I already used google to search this question when I send this
message.
but I did not find method of solution.
===
On Sun, Apr 4, 2010 at 8:45 AM, Heinz Strunk wrote:
> But what exactly would you want to test in that test case?
By "test case" here I mean the smallest possible application that
reproduces the "empty string" error you're describing.
--
Hassan Schroeder hassan.schroe...
But what exactly would you want to test in that test case?
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe f
Thank you for all your help!!!
I already used google to search this question when I send this message.
but I did not find method of solution.
==
System: Snow leopard 10.6.2
RVM->Ruby: ruby 1.9.2dev (2010-04-04 trunk 27215) [i386-darwin10.0.0]
On Sun, Apr 4, 2010 at 3:54 AM, Heinz Strunk wrote:
> How could a test case help me? Output of the console shows already that
> there's something messed up:
Again, for you -- not for me. So reducing the problem to the smallest
possible test case that other people can try is one way to get help.
On Sun, Apr 4, 2010 at 5:12 AM, Rahul Mehta wrote:
> i have in varible people-&-culture
> want to show it people-&-culture
> any special function to change in to html except gsub()
Use h(variable), a helper method available in your views for html escaping.
--
You received this message because y
The downgrade or may be just switching between both.
rails _2.3.5_
and
rails _3.0.0_
styles may not work if both 2.3.5 and 3.0.0 is there?
Just want to be able to switch easily on Mac.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the
i have in varible people-&-culture
want to show it people-&-culture
any special function to change in to html except gsub()
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups
>
> Why do you need the current user in the model?
>
> Colin
I don't need it in the model. I need it in a service class. When
remoting from as3, I can only call functions defined in such a class.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscr
Hi there
What you are trying to find is (I think it's the easiest option )
class CreateListSongs < ActiveRecord::Migration
def self.up
create_table :members, :primary_key =>[:club_id, :person_id] do |t|
t.integer :club_id
t.integer :person_id
t.text :comment
By the way: It doesn't matter if I use Ruby 1.8.6 or 1.9.1.
In the posting above I'm using 1.8.6 and this is 1.9.1:
Loading development environment (Rails 2.3.5)
D:/ruby19/lib/ruby/gems/1.9.1/gems/rails-2.3.5/lib/rails/gem_dependency.rb:119:Warning:
Gem::Dependency#version_requirements is deprec
How could a test case help me? Output of the console shows already that
there's something messed up:
>> I18n.locale
I18n.locale
=> "DE-de"
>> I18n.l(Time.now, :formats => :default)
I18n.l(Time.now, :formats => :default)
=> "Sun, 04 Apr 2010 12:49:37 +0100"
>> I18n.l(Time.now, :formats => :short
Nice! Thank you!
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to
rubyonrails
On 4 April 2010 07:03, Liquid Fury wrote:
> Unfortunately not. There are many posts regarding the wrongness of
> passing a variable to a model for example (which makes sense)
Why do you need the current user in the model?
Colin
> and I just
> assume the same wrongness in our case - however no
Sorry!
that was new method by mistake i had written it as find.
map.resources :courses do |course|
course.resources :pages
end
<%form_for :page,:url=>course_pages_path(@course) do %>
<%end%>
in controller
def new
@course = Course.find(params[:course_id])
end
def create
@course = Course.find(pa
On 3 April 2010 23:51, Don Kowalski wrote:
> Rails newbe here:
>
> Using link_to_unless_current and on my website it displays the the menu
> item and its entire path in () ...
>
> example:
> home (/)
> about (/welcome/about)
> register (/users/register) ... and so on.
Are you sure you have not g
On Fri, Apr 2, 2010 at 8:33 PM, David Zhu wrote:
> I made a posts scaffold, and a comments scaffold
>
> Now i want to link the two of them together by --
>
>
> Post--
>
> has_many :comments
>
> and comments-
>
> belongs_to :post
>
>
> After that, I have no idea what to do in the controller or for
On Sun, Apr 4, 2010 at 12:39 AM, Srijith nair wrote:
> Hi David
> This error is mainly because your not getting id in the create function
> Please follow the following steps, i think this will solve your problem.
>
> I hope you configured your routes like this
> map.resources :courses do |course|
On 3 April 2010 12:59, dan wrote:
> I have created the simplest rails app using the apple tutorial:
> http://developer.apple.com/tools/developonrailsleopard.html.
>
> Ok actually I only got halfway through because I really only wanted to
> try out the basic REST services. Long story short I setup
On 3 April 2010 17:44, David Zhu wrote:
>
> hey guys, thanks for the replies
>
> But those tutorials still dont tell you what to do in the contrller or
> form view for my comments
There are many tutorials out there that show how to make a basic blog
with comments. Try google for rails tutorial b
Hi David
This error is mainly because your not getting id in the create function
Please follow the following steps, i think this will solve your problem.
I hope you configured your routes like this
map.resources :courses do |course|
course.resources :pages
end
<%form_for :page,:url=>course_page
On Sun, Apr 4, 2010 at 12:19 AM, Xx Xy wrote:
> Now I got it. Rake uses the Ruby specified in /usr/bin/rake's shebang
> line. The 1.9 rake was the latest installed and so it used Ruby1.9. To
> use Ruby1.8 I typed 'rake1.8'.
>
I would recommend using RVM because it takes care of this quite nicely
Hi,
I am trying to deploy a Rails app from another machine than I did before
and get permission denied errors. Everything the app needs is on the
same root server.
config/deploy.rb
--8<---
set :git_enable_submodules, 1
set :application, 'kunsthof'
set :repository, 'u
On Sun, Apr 4, 2010 at 12:24 AM, Conrad Taylor wrote:
> On Sat, Apr 3, 2010 at 7:05 PM, David Zhu wrote:
>
>> I'm getting this error-
>>
>> ActiveRecord::RecordNotFound in PagesController#create
>>
>> Couldn't find Course without an ID
>>
>>
>> --
>>
>> Btw, the pages belongs to courses, and
On Sat, Apr 3, 2010 at 7:05 PM, David Zhu wrote:
> I'm getting this error-
>
> ActiveRecord::RecordNotFound in PagesController#create
>
> Couldn't find Course without an ID
>
>
> --
>
> Btw, the pages belongs to courses, and the courses has many pages
>
> Now, in my pages controller, for my
Now I got it. Rake uses the Ruby specified in /usr/bin/rake's shebang
line. The 1.9 rake was the latest installed and so it used Ruby1.9. To
use Ruby1.8 I typed 'rake1.8'.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ru
hii all
want to generate rss feeds from two tables and to come on top the
latest created in two tables
1st table
create table
CREATE TABLE `content_masters` (
`id` int(11) NOT NULL auto_increment,
`image_path` varchar(255) collate utf8_unicode_ci default NULL,
`content_text` text collate utf
72 matches
Mail list logo