, and
config.assets.digest = true
In your production.rb?
-GR
On Sep 8, 2011, at 9:56 AM, Joshua Partogi wrote:
Hi there,
So I am using Rails 3.1.0 in production. However the asset link that is
produced is:
link type=text/css rel=stylesheet media=screen
href=/stylesheets/application.css
Hi there,
So I am using Rails 3.1.0 in production. However the asset link that is
produced is:
link type=text/css rel=stylesheet media=screen href=
/stylesheets/application.css
Instead of:
link type=text/css rel=stylesheet media=screen href=
/assets/application-md5hash.css
I am using this
HI all,
When I print Rails.env in one of my initializer, I noticed that the dev env
is loaded first before the test env. There are some bits that I don't want
to run for unit testing (i.e background job). Is there any way to setup
Rails not to run the development env when unit test is ran?
HI all,
When I print Rails.env in one of my initializer, I noticed that the dev env
is loaded first before the test env. There are some bits that I don't want
to run for unit testing (i.e background job). Is there any way to setup
Rails not to run the development env when unit test is ran?
Thanks Nick. You have been really helpful. I am just trying to figure
out how this is different to connection pooling in the Java land. =)
Cheers,
Joshua.
On Sep 16, 11:12 pm, Nick Sieger nicksie...@gmail.com wrote:
On Wed, Sep 15, 2010 at 5:08 PM, Joshua Partogi
joshua.part...@gmail.com
am, Nick Sieger nicksie...@gmail.com wrote:
On Sun, Sep 5, 2010 at 8:57 AM, Joshua Partogi joshua.part...@gmail.com
wrote:
Hi all,
I am interested to learn more about connection pooling in rails. Is there
any good articles about this? I want to know specifically how is connection
Hi all,
I am interested to learn more about connection pooling in rails. Is there
any good articles about this? I want to know specifically how is connection
pooling in rails works. Does rails open one connection to the database for
every user that is connected or does every user share the same
Hi everyone,
Now that rails 3 is out and everyone is excited, does anybody know where's
the 2.3 guide went?
Thanks heaps.
Joshua
--
http://twitter.com/scrum8
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To post to this group, send
Hi all,
When I deploy my rails apps in production, it will barf out an error
message if my controller does not have any helper. But this does not
happen in development environment. Is there something that I can
configure through rails so production does not ask for helpers for
every controller?
Ok got it now. I think you have to explicitly require the ruby file
now.
Regards,
Joshua.
On Jun 28, 2:10 pm, Joshua Partogi joshua.part...@gmail.com wrote:
Hi all,
Has there been changes in the way Rails 3 loading the libraries under lib/
Suddenly after the upgrade, all the library under
Hi all,
Has there been changes in the way Rails 3 loading the libraries under lib/
Suddenly after the upgrade, all the library under the lib/ is not
loaded anymore.
Does anyone experience this issue as well? Or is it just my delusion?
Thanks for your help.
Kind regards,
Joshua.
--
Hi all,
I want to authenticate my mobile phone apps to my online Rails apps.
What would be the best approach to do this? Can anybody give
suggestion both on how I should do it in the mobile app and in the
rails app?
Thank you very much for your help.
Kind regards,
Joshua
--
Hi Bill,
Thank you for the hint and explanation. That really helps. I will try
from here. =)
Kind regards,
Joshua.
On Jun 14, 10:26 pm, Bill Walton bwalton...@gmail.com wrote:
Hi Joshua,
On Mon, Jun 14, 2010 at 7:12 AM, Joshua Partogi
joshua.part...@gmail.com wrote:
Hi all,
I want
Hi all,
I would like to validate a form, but this form is not bounded to a
Model? What would be the best approach to do this in Rails? I tried to
look in the Rails guide with no luck. Can anybody share their
experience please?
Thank you very much in advance.
Kind regards,
Joshua
--
.
Kind regards,
Joshua
On Jun 1, 3:10 am, Mirko batam...@gmail.com wrote:
Do you mean rescuing or raising ActiveRecord::NotFound?
On Jun 1, 4:54 am, Jeffrey L. Taylor r...@abluz.dyndns.org wrote:
Quoting Joshua Partogi joshua.part...@gmail.com:
Hi all,
I want to be able to display 404 page
Hi all,
I want to be able to display 404 page from a controller when a record
in the database can not be found. I am using Rails 3 at the moment. I
tried to find how to do this on guides.rails.info with no luck. Can
anybody recommend the best approach to do this?
Thanks heaps for your help and
On May 21, 11:29 am, Marnen Laibow-Koser li...@ruby-forum.com wrote:
Also cloud hosting is more expensive
than 'classic' hosting unless you plan on being the next Facebook...
Nope. Look at Rackspace Cloud's pricing and say that again with a
straight face.
Actually Rackspace cloud can
Dear all,
I would like to save a restful resource in the database, and display
it as a link on the web page.
I tried saving:
bar_path(1)
into the path column in the table,
but unfortunately it doesn't work when I display it like this:
%= link_to 'bar', bar.path %
Is this possible with rails?
IMHO Heroku is pretty simple.
Kind regards,
Joshua
On May 19, 1:22 am, Mohammed Alenazi vb4...@gmail.com wrote:
Hi
I have registered for some paid rails hosting system that uses cpanel
to deploy the rails apps. I could not deploy my app/ I tried several
times with no success.
Does any
Hi Tim,
Thank you for the response. Currently it display the plain text of the
route method:
bar_path(1)
instead of:
/bar/1
When I looked in the database it saved as String. Do I need to convert
it into a method?
Sorry for the vague question and thanks heaps for your help.
Kind regards,
Hi all,
I am currently using Rails 3 and I am using it to upload a file. How
do I get the original filename using Rails 3? Because when I use
File.basename(), what I get is RackFileUpload and not the original
filename. Has anyone done this before and can share it with us here?
Kind regards,
Hi all,
This is a rather basic question about connection pooling in ruby on
rails. In rails we can define the connection pool in database.yml. I
assume it is quite safe to hardcode this value for intranet
application since we would know how many users that will be using the
apps. But for an
Dear all,
Is it possible to generate a breadcrumb from Rails controller without
using any additional plugin? What methods should I look into to be
able to generate breadcrumb in Rails?
Thank you very much in advance for your assistance.
Kind regards,
Joshua
--
http://twitter.com/scrum8
--
'current_subdomain'
method to use in controllers
On Mon, Apr 19, 2010 at 10:35 AM, Joshua Partogi jpart...@scrum8.comwrote:
Hi all,
Is it possible to get the subdomain of the request from the action
controller? If so, how do we get the subdomain from Rails action
controller? I tried
Hi all,
In Rails3 we can define a constraint for subdomain as such:
constraints(:subdomain = support) do
...
end
But if we are using development web server like webrick, how would we
be able to test it? Anybody has got any hint or insights on this?
Your help is kindly appreciated.
Kind
Hi all,
Is it possible to get the subdomain of the request from the action
controller? If so, how do we get the subdomain from Rails action
controller? I tried to look at the Rails guide about this but can not
find any information on this.
Thank you very much in advance for your help and
Hi all,
I have a before_update observer method. But after that method is
finished, it doesn't proceed to ActiveRecord's save method. What do I
need to write in my before_update observer method to make it proceed
to the ActiveRecord save method.
This is what I wrote but it caused stack level too
Hi guys,
I just upgraded my application to use Rails 3. But after the upgrade
my delete/destroy method is not working anymore. Anybody experience
the same thing as I do? What changes needed to be done in order to
make this delete/destroy method to work again?
Thank you very much for your
Dear all,
I am experiencing this error when doing unit testing:
Authlogic::Session::Activation::NotActivatedError: You must activate
the Authlogic::Session::Base.controller with a controller object
before creating objects
I know this is not an error from Rails but I encounter this when doing
Hi everyone.
Does anybody know a good plugin for displaying a human readable time.
I like the ones on github. Django also has this built in, but I can
not find it for rails. Can anybody tell me a good plugin for this?
Thank you for your help.
Kind regards,
--
http://twitter.com/scrum8
--
wrote:
On 7 March 2010 09:19, Joshua Partogi joshua.part...@gmail.com wrote:
Hi everyone.
Does anybody know a good plugin for displaying a human readable time.
I like the ones on github. Django also has this built in, but I can
not find it for rails. Can anybody tell me a good plugin
Hi all,
In development I used webrick, but I suppose I don't want to use that
in production. With rails2 I would use mongrel or thin. But as far as
I know, mongrel is no longer developed? So are we left to thin these
days? Does thin plays nicely with Rails3? What is your latest
experience on
Cool. Thanks for that. I've never heard of it before. I'll try it this
weekend.
Regards,
On Feb 12, 11:48 am, Conrad Taylor conra...@gmail.com wrote:
On Thu, Feb 11, 2010 at 4:45 PM, Rick DeNatale rick.denat...@gmail.comwrote:
On Thu, Feb 11, 2010 at 6:29 PM, Joshua Partogi
joshua.part
On Nov 21, 3:16 am, Mike Gehard m...@samyamatech.com wrote:
Hello all,
I am wondering how people here are handling soft deletes in Rails.
I've need a couple of gems/plugins that seem to handle this but from
what I gather development has stopped on them.
All I need to do right now is mark
On Nov 21, 7:50 pm, Frederick Cheung frederick.che...@gmail.com wrote:
On Nov 21, 12:40 am,JoshuaPartogi joshua.part...@gmail.com wrote:
This is how my test code looks like:
assert_difference('Sprint.count') do
post(:create, :sprint = {:project_id = '', :goal =
'Deliver usable
Hi all,
I want to test my controller, but unfortunately the model that has
association to other model. I already have setup the parameter in the
test code but encounter this error:
1) Error:
test_create(SprintsControllerTest):
ActiveRecord::StatementInvalid: SQLite3::SQLException:
Hi all,
I've just started doing functional testing in Rails. I want to test my
controller whether it displays the page correctly or not. This is the
test code that I have written:
fixtures :all
def test_index
get(:index, {'code' = 'PR', 'project_id' =
Hi all,
Thanks for the help and assistance. I'm not sure why. But when I
configured whiny_nils to false, the tests runs.
Best regards,
On Nov 19, 10:23 am, pharrington xenogene...@gmail.com wrote:
Well, if there are no rows in the projects table whose code column is
PR, Project.find_by_code
Hi all,
I was wondering whether anyone has any recommendable security
framework that works with Rails 3. I have tried authlogic and it seems
not working. Is there any other option out there?
Thanks for your help.
--
Certified Scrum Master
http://blog.scrum8.com | http://jobs.scrum8.com |
hi all,
When I generate a rails app, there is a lib/ folder underneath it. Now
what is exactly this lib/ folder for? When I put the rack library
there, it is not scanned by RoR. Actually to expand this matter, I
want to be able to put non-Rails plugin to be available for Rails and
my app (e.g
Hi all,
Can I test my rails model with cucumber? Or is this not what cucumber
is used for? If it is, can anyone lead me to documentation on how to
use cuke to test Rails model please. I have read the cuke wiki rails
section, but I still can not understand how to use cuke to test my
model.
Many
Hi Marnen,
On Oct 14, 12:55 am, Marnen Laibow-Koser
rails-mailing-l...@andreas-s.net wrote:
Joshua Partogi wrote:
Hi all,
Can I test my rails model with cucumber? Or is this not what cucumber
is used for? If it is, can anyone lead me to documentation on how to
use cuke to test Rails
Hi Marnen
On Oct 12, 3:04 pm, Marnen Laibow-Koser
rails-mailing-l...@andreas-s.net wrote:
Joshua Partogi wrote:
On Oct 12, 10:31 am, Marnen Laibow-Koser
rails-mailing-l...@andreas-s.net wrote:
end
This won't quite work. But before I try to improve it...what are you
trying to do
On Oct 13, 2:24 am, Marnen Laibow-Koser
rails-mailing-l...@andreas-s.net wrote:
Then you want something like
def status=(value)
new_value = do_something_to(value)
self[:status] = new_value # assuming this class is derived from AR
end
The reason your attempt to do status = value didn't
Hi all,
Coming from the Java Hibernate world, I was confused when trying out
this piece of line of code:
class Task ActiveRecord::Base
def status=(status)
status = 'P'
write_attribute(:status, status)
end
end
I suspect that the value of :status in the database would be P,
because
On Oct 12, 10:31 am, Marnen Laibow-Koser
rails-mailing-l...@andreas-s.net wrote:
Joshua Partogi wrote:
Hi all,
Coming from the Java Hibernate world, I was confused when trying out
this piece of line of code:
class Task ActiveRecord::Base
def status=(status)
status = 'P
Dear all,
Today I've just checked-out Rails version 3 and when I have generated
scaffold, and open my apps from the browser, I encountered this error:
NameError in MainController#index
constant ActionView::Base::Subclasses::MainController not defined
Where do I defined this constant?
Does
On Oct 8, 12:52 am, Greg Donald gdon...@gmail.com wrote:
On Wed, Oct 7, 2009 at 8:11 AM, Joshua Partogi joshua.part...@gmail.com
wrote:
Today I've just checked-out Rails version 3
Where did you get this version 3 ? As far as I know it's not been released.
Greg,
I checked-out the latest
On Jul 6, 10:05 pm, Augustus Costa augustusco...@gmail.com wrote:
Somebody alredy work with this?May work don´t autocommit.
Why i make this?
unfortunately my db is SQLserver.
You can use JRuby and SQL Server with ActiveRecord JDBC
http://rubyforge.org/projects/jruby-extras/
What do you
On May 22, 5:14 pm, Frederick Cheung frederick.che...@gmail.com
wrote:
put what you have cloned from github into vendor/rails (or symlink
vendor/rails to your checkout from github)
Thanks Frederick. But how come I don't get the 3-0-0-unstable branch ?
Join Scrum8.com.
On May 23, 12:14 am, Frederick Cheung frederick.che...@gmail.com
wrote:
On May 22, 2:45 pm, Joshua Partogi joshua.j...@gmail.com wrote:
On May 22, 5:14 pm, Frederick Cheung frederick.che...@gmail.com
wrote:
put what you have cloned from github into vendor/rails (or symlink
vendor
Dear all,
I would like to work on the latest rails version from github. I have pulled
it and set my $GEM_PATH to where I pulled it : /home/joshua/rails/
But when I worked on it, gem barfed out and did not recognize it. But when I
typed: gem environment, it displayed /home/joshua/rails/ as my
Hi everyone,
I'm currently looking for opportunity for a rails career in USA (Note: I've
never been to US in my entire life). Now can anyone give me a ballpark
figure of the salary rate as a rails developer in the US? I've tried looking
around in rails job boards but can not find an estimate of
On May 19, 1:06 am, Marnen Laibow-Koser rails-mailing-l...@andreas-
s.net wrote:
Joshua Partogi wrote:
Hi everyone,
I'm currently looking for opportunity for a rails career in USA (Note:
I've
never been to US in my entire life).
Then don't you think you should at least visit before
All,
Is Rails 3.0 officially released yet? Because as far as I remember it is
scheduled to be release after RailsConf. I don't see any announcements or
whatsoever though. Does anybody know the status of Rails 3.0? Perhaps those
that went to RailsConf can give us some idea about it.
Regards.
--
On May 14, 5:55 pm, Conrad Taylor conra...@gmail.com wrote:
Joshua, Rails 3.0 is not officially released at this time. Thus, I would
recommend viewing DHH keynote here:
http://railsconf.blip.tv/file/2081411/
Thanks for the redirection Conrad. :-)
Cheers.
Dear all,
Does anybody know a good reference for sending ajax request to rails without
using the rails ajax helper? I want to use other framework, namely jQuery.
Because without using the ajax helper from rails I encounter an authenticity
error from rails.
Thank you very much in advance,
--
If
Dear all,
I just created session with rake db:sessions:create and run the migration
also. When I run my apps, my db barfed out saying that the length of
session_id is too long. When I checked into my db, the length of session_id
column in the sessions table, it was 255 of character varying. I
Yeah I got that problem too and I just alter the column to be varchar
(500) :-(
On May 5, 9:55 pm, César Díaz rails-mailing-l...@andreas-s.net
wrote:
Hi,
I have a problem with the Session ID in my Rails application. I need to
store some data of anonymous users and then, when the session
Dear all,
Is there anyone that deploys their Rails apps on amazon EC2? I read
from AWS website that they have Rails on EC2. Can anyone that use
Amazon services share their experience with Rails on EC2?
Thank you very much
--
If you can't believe in God the chances are your God is too small.
The domain is being parked.
On Apr 23, 2:12 pm, kallep johan.post...@gmail.com wrote:
I get a sponsored link page then i visithttp://www.rubyonrails.org
.
Only me?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Dear all,
What is the best architecture in terms of performance for Rails. Is
lighttpd + mongrel the most recommended deployment architecture for
Rails? Or is there any better architecture that outperform this
architecture?
Thank you very much in advance.
--
If you can't believe in God the
Hi all,
How do we add a conditions in a ActiveRecord find method when the
parameter is available?
Lets say I want to add this category conditions when the parameter
from the client:
Product.find(:all, :conditions = [ c.id = ?, params[:catid])
Can we dynamically add that conditions to the find
Wow this is a very clean approach. Trying this one out. :-)
Thanks heaps.
On Mar 1, 12:35 pm, Michael Graff skan.gryp...@gmail.com wrote:
I often do the brute-force approach:
cond_string = []
cont_hash = {}
if params[:search_name]
cond_string (name ILIKE :name)
Darn,
I returned an array object besides that products instance, giving that
to_json will give backslashes to the quotes.
On Feb 14, 9:31 pm, Frederick Cheung frederick.che...@gmail.com
wrote:
On Feb 14, 1:26 am, Joshua Partogi joshua.j...@gmail.com wrote: All,
I have a many_to_one
All,
I have a many_to_one relationship object between products and
categories and I want to return the category too using JSON results
but it seems that rails only gives back the products JSON object on
the view layer. This is the piece of code:
@products = Product.find(:all, :include =
Dear all,
I'm totally new with Ajax and Rails. How do I display JSON objects
that I get from the controller to the view. Is there any way we can
display the JSON objects directly in the DOM, or do I have to
manipulate the DOM to place the JSON objects upon successful Ajax
call? I just hate
Dear all,
Could anyone refer me a good tutorial for setting up apache as the
proxy for Rails apps that uses Mongrel?
Thank you very much.
--
If you can't believe in God the chances are your God is too small.
Read my blog: http://joshuajava.wordpress.com/
Follow me on twitter:
Dear all,
I am currently confused with defining model in Rails that has two
has_many relationship.
I have a model that is called Category, and this model will be used by
two model which is Product and Blog.
Would this definition make sense in rails ?
Category
has_many :product
has_many
Dear all,
Is it possible to use rails as a RESTful web service? Has anyone done
this before? Is there any drawback when doing this? Could anyone share
their experiences?
Thanks in advance.
--~--~-~--~~~---~--~~
You received this message because you are subscribed
Dear all,
I've saw a plugin called restful_auth several times in rails
community, but I couldn't find any resources on how to use it. Does
anyone know how to install and use it? Help really appreciated.
Best regards,
--~--~-~--~~~---~--~~
You received this
Yes. I typed restful_auth because everyone use that. No wonder I can
not find it on github. Thanks!
On Jan 9, 2:40 am, Fernando Perez rails-mailing-l...@andreas-s.net
wrote:
Joshua Partogi wrote:
Dear all,
I've saw a plugin called restful_auth several times in rails
community, but I
application.rb so that the gems are included
there?
On Jan 5, 3:19 pm, Joshua Partogi joshua.j...@gmail.com wrote:
Well it moved the rails gems into the vendor/ directory in my apps,
but it doesn't move other gems that I use in my application.
On Jan 6, 1:57 am, Rob Lacey r
Dear all,
Could anyone refer me a good security framework in rails for
authentication and authorization please?
Thanks in advance
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To post
Dear all,
How do I package a rails apps and distribute it? As I can see that
rails library is installed inside the Ruby gem folder and not inside
the apps. Now if I want to distribute this with my client, how can I
include those gems inside the application lib/ ? Or in other case lets
say I want
RobL
Joshua Partogi wrote:
Dear all,
How do I package a rails apps and distribute it? As I can see that
rails library is installed inside the Ruby gem folder and not inside
the apps. Now if I want to distribute this with my client, how can I
include those gems inside the application lib
Thank you all for the responses. I'm going to try it out first.
Cheers
On Dec 29, 3:27 am, Robby Russell ro...@planetargon.com wrote:
On Sun, Dec 28, 2008 at 4:40 AM, Joshua Partogi joshua.j...@gmail.com wrote:
Dear all,
I am still new in rails, and I realised that in rails each model
Dear all,
I am still new in rails, and I realised that in rails each model has
its own layout/template located under layouts/
Now my question is, is it possible to have only one layout for the
entire apps instead of having separate one for each model? If so, is
there any guide I can read about
Hi all,
I've been searching through the list about configuring MySQL adapter
on Rails 2.2, and it seems that this question is asked over and over
again without any solution :-D Why did Rails 2.2 made configuring the
mysql driver so difficult? Why is it a move backward in Rails 2.2? Why
isn't
I was talking about the mysql ruby driver is not come bundled and
installing it manually is not easy too.
On Dec 3, 12:04 am, Frederick Cheung [EMAIL PROTECTED]
wrote:
On Dec 2, 12:50 pm, Joshua Partogi [EMAIL PROTECTED] wrote:
Hi all,
I've been searching through the list about
Dear all,
Has anyone run RoR on cPanel based shared hosting? I've got my RoR
application on http://mydomain:10024/
Now I've uploaded all my Product model, view and controller.
Then I tried hitting: http://mydomain:10024/products but it didn't work
Is there any configuration I need to do on a
81 matches
Mail list logo