On Oct 8, 2:23 pm, comopasta Gr <[EMAIL PROTECTED]>
wrote:
> Hi,
>
> Thanks for the replies.
>
> > One way I found around it is to temporarily rename the helper with the
> > same name on the parent namespace before running the script/generate.
>
> Erol how did you actually renamed it? I tried and
Hi,
Thanks for the replies.
> One way I found around it is to temporarily rename the helper with the
> same name on the parent namespace before running the script/generate.
Erol how did you actually renamed it? I tried and complains about some
dependencies.
C:\InstantRails\rails_apps\test>rub
Erol Fornoles wrote:
> On Oct 8, 1:37?pm, "Robby Russell" <[EMAIL PROTECTED]> wrote:
>> Do you happen to have a model named Admin?
>
> Nvm what I just said earlier. It's a confirmed bug:
>
> http://rails.lighthouseapp.com/projects/8994/tickets/545
>
> One way I found around it is to temporarily
On Oct 8, 1:37 pm, "Robby Russell" <[EMAIL PROTECTED]> wrote:
> Do you happen to have a model named Admin?
Nvm what I just said earlier. It's a confirmed bug:
http://rails.lighthouseapp.com/projects/8994/tickets/545
One way I found around it is to temporarily rename the helper with the
same nam
Thank you for your feedback! :)
I have resolved my problem.
After installing the cobbler rpm ,run "rpm -ql rubygem-cobbler",and
the first line gives the path of rubygem-cobbler.
Then run "gem install cobbler path --include-denpendencies".
Another question:
Could you please give me some details ab
Do you happen to have a model named Admin?
On Tue, Oct 7, 2008 at 6:51 PM, Erol Fornoles <[EMAIL PROTECTED]> wrote:
>
> On Oct 8, 5:51 am, comopasta Gr <[EMAIL PROTECTED]>
> wrote:
>> Hi,
>>
>> I'm getting the next error:
>>
>> The name 'Admin::UsersHelper' is either already used in your applicat
kojilab wrote:
> Hi,
>
> Controller:
> @user_jobs = UserJob.find_by_user_id(current_user.id)
>
> View:
-
> <%= collection_select :user_project :user_job_id,
> @user_jobs, :id, :title %>
>
>
> Thanks for your help
I usually do this:
Controller:
@user_jobs_list=[]
@user_jobs=
I have written the following function in RoR for my website . The
function on execution gives an error for the Rmagick crop method , the
error is wriiten after the function . I am using the same
function(except for the change in name, rest everything is same) for
cropping from left , right and bot
Hi,
I am working on the some project where I required to do the import
contacts from GMail, Yahoo, facebook, Orkut and LinkedIn. Is there any
library or the predefined scripts which can help me. I think many
developers are facing the these kind of requirements from clients.
Anybody knows pleas
On Aug 14, 3:02 am, Aryk Grosz <[EMAIL PROTECTED]>
wrote:
> I have a method where I would like output to occur via "puts" only if
> its currently in the middle of a rake task or if its in the middle of a
> migration.
>
> How can I detect if the program execution is in the context of a
> migration
Sure Mauricio, here's an example.
Lets say you have a "products" table. You have product_type table column
in that table that you use for single table inheritance. So lets say you
have the value "book" as the product_type.
Now you want to have a pricing for this product, so you do:
belongs_
Some time ago, I had a problem on my project with error 500 when using IE
6/7. I think it was because I was doing $this instead of $(this) in some
JavaScript. I don't remember much more about the problem, though.
Regards,
Craig
--~--~-~--~~~---~--~~
You received th
Anybody?
--
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 f
There's no reason you instead couldn't serialize the AR objects as XML
and just dump those files.
On Oct 7, 8:24 pm, "Eric Schulte" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I hoping to find/write an ActiveRecord backend which stores each record
> as a file in a directory, rather than as a row in a ta
i created scaffold Post
when i check in the browser everything is fine
if i give my own link in any page
<%=link_to "new_action",:action=>'new_action' %>
it always go to show action only
how to override this ?
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~--
Acts as Tree:
http://wiki.rubyonrails.org/rails/pages/ActsAsTree
Does everything you need.
On Oct 7, 8:53 pm, David Hill <[EMAIL PROTECTED]>
wrote:
> I'm fairly new to Ruby on Rails, and am having trouble figuring out how
> to do this. I have a model called Organization. I want to set things
thanks
--
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 fro
On Tue, Oct 7, 2008 at 11:38 PM, Aryk Grosz <
[EMAIL PROTECTED]> wrote:
> Also, I'd have to add a "_type" column even though you could infer the
> classname based off another column, thus making things anything but DRY.
>
>
>
Could you explain this a little bit more?
I guess i don't get the idea
Yes you could just build your own for this task or that task, but then
you start adding function after function until you realize why
activerecord made associations in the first place (getters, setters,
callbacks, reflections). =)
I tried patching polymorphic associations, its not easy, becaus
I am utterly unable to control how exceptions are handled in my
application and it's driving me nuts
The idea is simple. I have a SOAP handler like this.
class RtiController < ApplicationController
begin
wsdl_service_name 'Rti'
web_service_scaffold :invoke
web_service_api RtiA
You could just build your own associations solution instead of trying to
patch the polymorphic associations.
Also, if you have indexes for the columns, the time "searching" for the row
isn't really different than it would be for a number instead of a varchar.
The database should hit the result row
On Oct 8, 8:24 am, "Eric Schulte" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I hoping to find/write an ActiveRecord backend which stores each record
> as a file in a directory, rather than as a row in a table in a database.
> I'm not concerned about scaling or concurrency issues. My questions
> are...
Hi Eric,
It's pretty hard to write something like this using active record, 'cos it's
too easy to write complicated SQL code using it. How would you solve this
issue? Would you write a query parser? A query optimizer? Build an indexing
tool and also handle all the concurrency problems associated w
On Tue, Oct 7, 2008 at 11:03 PM, glennswest <[EMAIL PROTECTED]> wrote:
>
> Is Ruby Faster to Develop than PHP?
> Yes (What 5 people did in a year, I did in a week)
>
Crappy developers, what a shame :)
>
> Can I make my Rails App Faster than the "old" PHP APP?
> Yes
>
> Is Ruby the bottleneck?
>
This has been bugging me for some time.
The implementation for polymorphic associations in Rails is *still*
using the record_type, record_id model where record type has to be the
entire written out class name.
All of this logic is hardcoded deep in ActiveRecord, making it very
difficult to devia
Yes, I tend to break each major part of my app, into a namespace.
If its a "top" tab on my menu, its a namespace.
It make life so much easier. So yes, admin is almost always
in every app. Espesially when you start having dozens to hundreds of
controllers. Havent quite got to having a "model" in di
Is Ruby Faster to Develop than PHP?
Yes (What 5 people did in a year, I did in a week)
Can I make my Rails App Faster than the "old" PHP APP?
Yes
Is Ruby the bottleneck?
No
Can I learn new things in ruby fast?
Yes
Can I get them into Production fast?
Yes
Can I scale applications to support bi
Look into the :as and :source options for the has_many and belongs_to
associations, they should be able to do what you need.
Good luck!
On Oct 7, 5:53 pm, David Hill <[EMAIL PROTECTED]>
wrote:
> I'm fairly new to Ruby on Rails, and am having trouble figuring out how
> to do this. I have a model
On Oct 8, 5:51 am, comopasta Gr <[EMAIL PROTECTED]>
wrote:
> Hi,
>
> I'm getting the next error:
>
> The name 'Admin::UsersHelper' is either already used in your application
> or reserved by Ruby on Rails.
>
> When trying to run:
> ruby script/generate controller Admin::Users
>
> I've done somethi
On Oct 8, 5:04 am, Ian <[EMAIL PROTECTED]> wrote:
> I'm working on an "update your profile" page. One of the fields is
> the user's password. I have a couple of validation rules set up in
> the user model regarding the password's minimum and maximum length and
> it not being blank, etc. They wo
I forgot this - you also have to have
belongs_to :system
On Oct 8, 11:10 am, "stuart.coyle" <[EMAIL PROTECTED]> wrote:
> I've just been doing this myself with systems and sub-systems.
>
> In the system model I have:
>
> has_many :sub_systems, :class_name => "System", :foreign_key =>
> "system
I've just been doing this myself with systems and sub-systems.
In the system model I have:
has_many :sub_systems, :class_name => "System", :foreign_key =>
"system_id", :dependent=>:nullify
Then you can refer to the system.sub_systems
I also have code to prevent loops which will go around for
i had the same problem. i am not sure what is causeing the error. what
i did was use a name different than users. i used
Admin::AccountsHelper which worked fine.
On Oct 7, 5:51 pm, comopasta Gr <[EMAIL PROTECTED]>
wrote:
> Hi,
>
> I'm getting the next error:
>
> The name 'Admin::UsersHelper' is e
And I solved it myself...
I have to put the capitalized versions of the words in the
inflections, or rather make them a case insensitive regex!
Apologies for the noise.
stuart.coyle wrote:
> I'm having difficulty getting inflections to work properly.
> I have put this into environment inflection
I'm fairly new to Ruby on Rails, and am having trouble figuring out how
to do this. I have a model called Organization. I want to set things
up so that an org can have sub-orgs (which can have sub-orgs
themselves).
Can anyone point me to a good example or explanation (or provide one
directly) s
I'm having difficulty getting inflections to work properly.
I have put this into environment inflection.rb :
ActiveSupport::Inflector.inflections do |inflect|
inflect.plural 'criterion', 'criteria'
inflect.singular 'criteria', 'criterion'
end
I have a habtm relationship between component_typ
Well it just seems little information is out there with current
working assistance to show how to do this. For those of you that are
curious too on how to do this perhaps you wouldn't mind voting up at
http://railscasts.uservoice.com/pages/general/suggestions/33964 -
maybe Ryan and RailsCasts migh
saideep a.v.s wrote:
> Hello ,
> Use an Observe_field , so that you can have the country selected as a
> parameter and with the help of the country name u can extract the
> respective
> cities from the database
> Thanks & Regards,
>
> Saideep Annadatha
Thanks a tonn saideep for your time and
SORRY I FORGOT TO ASK THIS WHICH IS MORE CONFUSING... why is this
updating working only in the aptana browser (I'm using aptana studio for
rails) and not in IE and FireFox. I checked the javascript is enabled.
Is there something else I need to do?
thanks guys, this place has really been great f
Hi,
I hoping to find/write an ActiveRecord backend which stores each record
as a file in a directory, rather than as a row in a table in a database.
I'm not concerned about scaling or concurrency issues. My questions
are...
1) Does such a backend exist?
2) Is there some logical inconsistency be
I've tried typo and mephisto. Mephisto lacked some features and was
too inactive for my liking. Typo has a few problems I don't like, but
overall I prefer it over mephisto.
On Tue, Oct 7, 2008 at 2:55 PM, Abel <[EMAIL PROTECTED]> wrote:
>
> Thanks Pratik. Looks good!
>
> On Oct 7, 8:37 pm, Prat
Thanks Freddy,
This was very helpful too.
Regards,
Bharat
--
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 r
Please post your https virtualhost..
Do you have any .htaccess files anywhere?
--~--~-~--~~~---~--~~
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@google
Hi.
I've got a file that contains a table that looks like this:
column title acolumn title b
row 1 arow 1 b
row 2 arow 2 b
row 3 arow 3 b
row 4 arow 4 b
I need to read the rows starting with the second table row, which
excludes the title of the column. Then I need to read each colu
Thanks Pratik. Looks good!
On Oct 7, 8:37 pm, Pratik <[EMAIL PROTECTED]> wrote:
> Mephisto works for me -http://mephistoblog.com/
>
>
>
> On Tue, Oct 7, 2008 at 7:06 PM, Abel <[EMAIL PROTECTED]> wrote:
>
> > I have a running Rails Application and now I want to append a blog to
> > it.
>
> > I've
Hi,
Thanks for your comments. I decided to go for the admin namespace, I
need to have several controllers under it.
Already posted the first problem. The very first command actually :-P
Didn't even have time to get confused :-)
http://www.ruby-forum.com/topic/167667
Cheers!
--
Posted via htt
Hi,
I'm getting the next error:
The name 'Admin::UsersHelper' is either already used in your application
or reserved by Ruby on Rails.
When trying to run:
ruby script/generate controller Admin::Users
I've done something similar with Rails 2.0 with no problems. I have
Rails 2.1.1 now.
Tried to
My bad,
it looks like the creation form was nested inside of empty
tags. These surrounding tags, must have been what was breaking the
submit action to GET rather than POST. I removed these tags and it
appears to be working.
Thanks for the help! Sorry about the noise -- Eric
"Eric Schulte" <[
It did remove the mysql error thanks a lot guys.
but there's still a problem, and what happens is
that if i have 2 tags selected and then i unchecked 1 then it deletes
both,
maybe it has to do with the code. but i guess it's my login what's not
working,
is that correct?.
I'll work on that and if
Could your browser cache be screwing with you maybe? Any difference if you
switch to a different browser?
-Original Message-
From: rubyonrails-talk@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of
Eric Schulte
Sent: Tuesday, October 07, 2008 2:05 PM
To: rubyonrails-talk@googlegr
Jeff <[EMAIL PROTECTED]> writes:
> On Oct 7, 3:47 pm, "Eric Schulte" <[EMAIL PROTECTED]> wrote:
>> Is there a way to inspect which method (put, post, get etc...) is being sent?
>>
>> When I submit this form I am still directed to the
>> processing_service_controllers/new action. I'm really not c
I'm having a problem but don't know what is causing it so I don't know
exactly where to post, please bear with me.
I'm trying to set up https access however whenever I go to https://url_for_site
the root route renders but the url is rewritten to http://url_for_site.
The ssl request shows in the a
I'm working on an "update your profile" page. One of the fields is
the user's password. I have a couple of validation rules set up in
the user model regarding the password's minimum and maximum length and
it not being blank, etc. They work great. However, is there a way to
turn them off and no
On Oct 7, 3:47 pm, "Eric Schulte" <[EMAIL PROTECTED]> wrote:
> Is there a way to inspect which method (put, post, get etc...) is being sent?
>
> When I submit this form I am still directed to the
> processing_service_controllers/new action. I'm really not clear on
> what's going on, and why this
inline...
Jeff <[EMAIL PROTECTED]> writes:
> inline...
>
> On Oct 7, 3:10 pm, "Eric Schulte" <[EMAIL PROTECTED]> wrote:
>> Hi,
>>
>> I am using RESTFUL routes with the following setup with a form_for tag,
>> but instead of calling the :create action my form is calling the :new
>> action. I have
inline...
On Oct 7, 3:10 pm, "Eric Schulte" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am using RESTFUL routes with the following setup with a form_for tag,
> but instead of calling the :create action my form is calling the :new
> action. I have read and re-read the resources documentation, and I am
On Oct 7, 9:05 pm, kojilab <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am getting
> undefined method `map' for #
> with the code below. I've looked everywhere and I don't get what I am
> doing wrong
>
> Controller:
> @user_jobs = UserJob.find_by_user_id(current_user.id)
>
This is not an array, it's a
Hi,
I am getting
undefined method `map' for #
with the code below. I've looked everywhere and I don't get what I am
doing wrong
Controller:
@user_jobs = UserJob.find_by_user_id(current_user.id)
View:
<% form_remote_for(@user_project, :complete =>
'editObjectDialog.close()') do |f| %>
<%= f.er
Hi,
I am using RESTFUL routes with the following setup with a form_for tag,
but instead of calling the :create action my form is calling the :new
action. I have read and re-read the resources documentation, and I am
confident that I have the right combination of paths, and posting
methods, pleas
On Tue, Oct 7, 2008 at 11:39 AM, Abhishek shukla <[EMAIL PROTECTED]> wrote:
> Thanks for reply the main issue is that i don't have an access to apache
> folder currently my application running on Bluehost with a dedicated IP
> address. And even i am not able to access rewrite.log file as well
Y
Hello,
The correct syntax is
Model.create!(@attributes)
with the bang/exclamation point (!) after create, before the parentheses
(not in them).
See http://apidock.com/rails/ActiveRecord/Validations/ClassMethods/create!
Regards
Kieran
On Wed, Oct 8, 2008 at 5:33 AM, rpag <[EMAIL PROTECTED]>
Neal L wrote:
> Hi all,
>
> I'd like to get your feedback on the easiest way to find records that
> are related via has_many :through based on options in the :through
> table. Suppose an Author has_many Books :through a table called
> Authorships. The Authorships table is defined as:
>
> cre
IE throwing 500 errors?!
What do you have in your rails log? Could you post a stack trace for
the 500 error you get.
Is this development or production env.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby
on Ra
You could use
gem install cobbler --source --include-dependencies
where url points to the source of the cobbler gem. Make sure you have
installed gem first.
Alternately you could add the repository from where you would like gem
to pull out cobbler, to the gem sources. After that do a `gem env`
On Oct 7, 7:51 pm, The Neurochild <[EMAIL PROTECTED]> wrote:
>
> Surely this will work, but one last question. How can I make dissapear
> the config.breakpoint_server deprecation?
Remove it from development.rb
Fred
>
> I'll post anynews here if this worked or not.
>
> Greetings.
--~--~---
This may be a bit off-topic, but I am of the opinion that you need a
strong data model to effectively work in Rails. Therefore, anything
that makes sense when creating a "normal" data model applies to the
Rails one. I mean, you wouldn't leave off FK constraints if you were
writing a Java or a .NET
Roy Pardee wrote:
> If you google for "bypass rails validations" you'll come to a prior
> thread that will help you I think.
Thank you, Got it :)
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You received this message because you are subscribe
Here I went again on "rake test". These were the results:
***
* config.breakpoint_server has been deprecated and has no
effect. *
***
/usr/local/bin/ruby -Ili
Could you post your code so we can take a look at the actual actions?
On Oct 7, 11:33 am, rpag <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am trying to get form submitted data be submitted to my database,
> however not matter what I try it won't work. in script/console
> Model.create(args) adds to the
Hey Hassan,
Thanks for reply the main issue is that i don't have an access to apache
folder currently my application running on Bluehost with a dedicated IP
address. And even i am not able to access rewrite.log file as well :( so
that is why my is screwed up.. So please guys help me.
Regards
Mephisto works for me - http://mephistoblog.com/
On Tue, Oct 7, 2008 at 7:06 PM, Abel <[EMAIL PROTECTED]> wrote:
>
> I have a running Rails Application and now I want to append a blog to
> it.
>
> I've been researching on the matter and decided to try three engines
> that I thought were the most
And could you also post your config/database.yml?
On Oct 7, 11:33 am, amrita <[EMAIL PROTECTED]> wrote:
> What files do you have in your RAILS_ROOT/db folder?
>
> On Oct 7, 8:31 am, AnaRL <[EMAIL PROTECTED]> wrote:
>
> > Hi there,
>
> > I’m learning to use RoR. I’m trying to run rake to create m
What files do you have in your RAILS_ROOT/db folder?
On Oct 7, 8:31 am, AnaRL <[EMAIL PROTECTED]> wrote:
> Hi there,
>
> I’m learning to use RoR. I’m trying to run rake to create my blank
> database, but I get this
> “rake aborted! uninitialized constant ActiveRecord ” msg
> I don’t know what t
Hi,
I am trying to get form submitted data be submitted to my database,
however not matter what I try it won't work. in script/console
Model.create(args) adds to the database just fine.
pastie is here
I've tried .create(!), .save after it, and Model.new in the action
index.
Thanks for any help
On Oct 7, 7:19 pm, Vidmantas Kabošis <[EMAIL PROTECTED]
s.net> wrote:
> Hello,
>
> I'm trying to develop a ActiveRecord plugin but run into the following
> problem: I pass arguments to
>
> write_inheritable_attribute :some_field, 'value'
> class_inheritable_reader :some_field
>
> in ClassMe
Hello,
I'm trying to develop a ActiveRecord plugin but run into the following
problem: I pass arguments to
write_inheritable_attribute :some_field, 'value'
class_inheritable_reader:some_field
in ClassMethods module and I'm available to get them in InstanceMethods
with self.class.some_fiel
Hi,
thanks for your reply.
I have RedCloth 4.0.4 installed. However, it was using an old version
that is for some reason in the ruby 1.8 folder.
/usr/lib/ruby/1.8/redcloth.rb that includes 3.0.99.0.svn.20060519!
I removed the file redcloth.rb and now it works. But removing the file
does not see
Here is the /etc/hosts file. Both production and dev are on the same
machine. OK, so I get why 127.0.0.1 and myserver.mydomain.org are not
mapped to one another. For that I will need to have a line
"127.0.0.1 myserver.mydomain.org myserver" in /etc/hosts.
But the dev/prod accessibility
I have a running Rails Application and now I want to append a blog to
it.
I've been researching on the matter and decided to try three engines
that I thought were the most popular: Typo, Simple Log and Comatose,
but with each of them I find problems trying to install them: Typo
seems to have a de
On Mon, Oct 6, 2008 at 7:30 PM, Sav <[EMAIL PROTECTED]> wrote:
>
> That didn't work (and appears to be backwards). I tried the following
> w/ no luck...
You probably want to turn on/up rewrite logging for more information
on /why/ you're having "no luck", instead of guessing :-)
Something lik
Never mind i figured it out
On Oct 8, 12:24 am, Shawn Tang <[EMAIL PROTECTED]> wrote:
> after more inspection i have found that it is the link_to_remote that
> has lost its :url. it seems to be picking up the url of the action
> page. Does anyone know why?
>
> On Oct 7, 8:36 pm, Shawn Tang <[EMAI
I recently upgraded to Rails 2.1.0 and thought that everything worked -
I work mostly in FireFox and Crome - but when I went to do testing in
IE7, pretty much nothing works. I have my app broken down into about 10
seperate pages, all of which make use of auto_complete,
in_place_editors, and variou
Fred & Rob - thanks for the help!
-Gavin
On Oct 7, 10:55 am, Rob Biedenharn <[EMAIL PROTECTED]>
wrote:
> On Oct 7, 2008, at 10:43 AM, gaveeno wrote:
>
>
>
> > Rob - you mentioned that you should have indexes on your *_id columns
> > if they're used in has_many relationships. When I created my
>
Well, don't works with MySQL: 5.0.41 with MAMP,
but works with MySQL 5.0.51b installed on my mac.
Regards.
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: T
[EMAIL PROTECTED] wrote:
> On Oct 4, 9:59 pm, Mohit Sindhwani <[EMAIL PROTECTED]> wrote:
>
>> [EMAIL PROTECTED] wrote:
>>
>>> Hi,
>>>
>>> Our Rails application allows WAV file downloads. The user clicks on a
>>> link, or
>>> clicks a button, and the WAV file gets sent as a response
Hi all, I had create a scaffold in a new rails app.
Just title:string and body:text for a Note scaffold.
The problem is that when I go to the new page
(http://0.0.0.0:3000/notes/new)
webrick crash and I can just see "Illegal instruction".
=> Booting WEBrick...
=> Rails 2.1.1 application started
Hi,
If you want the customer to land on a landing page that redirects
after 5/10 seconds you should just setup two virtualhosts in apache
one for the new domain and one for the old...
The old domain has one index.html file inside the doc root which has a
META refresh inside. example:
Ne
Frioffol Friofool wrote:
> Gaspard Bucher wrote:
>> You misunderstood me. Try running your command * in the shell *
>> to test it first. You also get any error messages. So you should type:
>>
>> # env -i /usr/bin/mongrel_rails start -d -e development -p 3003 -a
>> 127.0.0.1 -P /home/seb/railspro
I've never had any problems with using an admin namespace either. I
recommend doing it.
-- Josh
http://iammrjoshua.com
Frederick Cheung wrote:
> On 7 Oct 2008, at 01:49, Robby Russell wrote:
>
(a bit
>> The only issue that we've really run into is with namespaces and model
>> names. Some
after more inspection i have found that it is the link_to_remote that
has lost its :url. it seems to be picking up the url of the action
page. Does anyone know why?
On Oct 7, 8:36 pm, Shawn Tang <[EMAIL PROTECTED]> wrote:
> Sorry the error that i get should be like this:
> Processing ArticlesCont
Gaspard Bucher wrote:
> You misunderstood me. Try running your command * in the shell *
> to test it first. You also get any error messages. So you should type:
>
> # env -i /usr/bin/mongrel_rails start -d -e development -p 3003 -a
> 127.0.0.1 -P /home/seb/railsproject/cpericard/log/mongrel.3003.
ok, so if i add a type for php,
Mime::Type.register "application/x-httpd-php", :php
and then something in my route.rb to redirect any .php calls to the
appropriate place i should be ok?
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You receive
how to integrate existing rails project into a new rails project?
i want to use Yahoobb pack (http://github.com/xdite/yahoobb-pack/tree/
master) as plugin or third party lib for a new rails project.
but i dont know how to do?
anyone can help methx
--~--~-~--~~~--
Hi all,
I'd like to get your feedback on the easiest way to find records that
are related via has_many :through based on options in the :through
table. Suppose an Author has_many Books :through a table called
Authorships. The Authorships table is defined as:
create_table "authorships", :forc
On 7 Oct 2008, at 12:22, John Griffiths wrote:
>
> I'm rebuilding my site and with google i'm getting a load of requests
> for .php or .aspx files which the previous site was built on.
>
> Is there any way of redirecting these www.mysite.com/index.aspx
> requests
> to the /index action via the
It looks to me like you can subtract one date var from another & get a Rational
that represents the number of days difference. You should be able to .to_i
that to work w/it as a number.
HTH,
-Roy
-Original Message-
From: rubyonrails-talk@googlegroups.com [mailto:[EMAIL PROTECTED] On
If you google for "bypass rails validations" you'll come to a prior thread that
will help you I think.
-Original Message-
From: rubyonrails-talk@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of
Sira Dh
Sent: Tuesday, October 07, 2008 8:35 AM
To: rubyonrails-talk@googlegroups.com
Hey thanks sav but still no success...
RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ dispatch.cgi [QSA,L]
RewriteCond '%{SERVER_PORT}" "^12004$"
RewriteRule "^(.*)$" "http://%{SERVER_NAME}$1"; [R=301,L]
This is my .ht
Hi there,
I’m learning to use RoR. I’m trying to run rake to create my blank
database, but I get this
“rake aborted! uninitialized constant ActiveRecord ” msg
I don’t know what to do about it, I’ve checked I’ve installed
everything I need.
If I go to the files and lines indicated in the stack e
Hi there,
I’m learning to use RoR. I’m trying to run rake to create my blank
database, but I get this
“rake aborted! uninitialized constant ActiveRecord ” msg
I don’t know what to do about it, I’ve checked I’ve installed
everything I need.
If I go to the files and lines indicated in the stack e
1 - 100 of 156 matches
Mail list logo