Hi All,
I have a ruby on rails application and in the controller, I try to run a
shell script using exec command
like this
---
variable = 'sh /home/abc.sh'
exec variable
---
But when the control comes at this line, the mongrel server immediately
crashes, and when I check its status its says "m
> For example, in your User model, you could have the following methods:
>
> def self.ip_address=(ip_address)
> Thread.current[:ip_address] = ip_address
> end
>
> def self.ip_address
> Thread.current[:ip_address]
> end
God please tell me he did not suggest to use threads in order to add
Thanks Darby,
So you mean I dont need a single field in my db structurebut its
confusing how this plugin is managing some complex kind of acl like I want
to restrict some people from accessing a particular record, deleting a
record and updating a record...let say I have scenario
Model(Lead)
Rick Denatale wrote:
> By default though the passenger process for a rails app tries to run
> as the user which owns conf/environment.rb unless configured otherwise
> it runs as the user nobody unless configured otherwise.
>
> http://www.modrails.com/documentation/Users%20guide.html#user_switchi
Hi all,
I have the same problem, after create the scaffold I try to do new
methods in the controller and when I want to call it, I see
undefined local variable or method `semana_post_path' for
#
Then I try changing the url http://localhost:3000/posts/semana
Couldn't find Post with ID=semana
Cormac Moylan wrote:
Cormac, did you ever figure this out? I'm having the exact same problem.
Thanks! Jeff
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails:
On Jun 10, 2009, at 7:45 PM, hoenth wrote:
>
> I recently deployed a new version of my application. Unfortunately, I
> accidentally placed a folder containing two partials in the wrong
> repository (I had copied them from another application), so when I
> deployed, they were not included. Once I
I recently deployed a new version of my application. Unfortunately, I
accidentally placed a folder containing two partials in the wrong
repository (I had copied them from another application), so when I
deployed, they were not included. Once I discovered this, I added this
folder and the two parti
>
> > > Makund - it is quite likely that your solution will break when
> > > multithreading arrives (as will will loads of other stuff)
>
You could try using Thread.current in your model when storing your
class variable.
For example, in your User model, you could have the following methods:
d
My site allows users to upload csv files for processing. It all works
fine, but on the response I'd like to report something like "Your file
abc.csv processed OK".
Unfortunately I cannot seem to find the actual original file name in
the params, even though Firebug tells me it's part of the post.
> I'm a freelancer and would love to advertise on this list when I have
> availability, but I have always understood that it would be poor form
> to do so. I think it is entirely unfair to those of us who follow ML
> guidelines for someone to turn around and tell the OP not to worry
> about the r
+1
I'm a freelancer and would love to advertise on this list when I have
availability, but I have always understood that it would be poor form
to do so. I think it is entirely unfair to those of us who follow ML
guidelines for someone to turn around and tell the OP not to worry
about the rules.
On Wed, Jun 10, 2009 at 7:49 PM, Mk 27 wrote:
>
> Frederick Cheung wrote:
>> On Jun 10, 11:06�pm, Mk 27 wrote:
>>> After switching to passenger from WEBbrick I keep getting "attempt to
>>> write to read-only database", so I chown'd the sqlite file apache.apache
>>> and chmod'd 666, now I get "una
Frederick Cheung wrote:
> On Jun 10, 11:06�pm, Mk 27 wrote:
>> After switching to passenger from WEBbrick I keep getting "attempt to
>> write to read-only database", so I chown'd the sqlite file apache.apache
>> and chmod'd 666, now I get "unable to open database file"?
>>
> What user is passenge
On Jun 10, 11:06 pm, Mk 27 wrote:
> After switching to passenger from WEBbrick I keep getting "attempt to
> write to read-only database", so I chown'd the sqlite file apache.apache
> and chmod'd 666, now I get "unable to open database file"?
>
What user is passenger set to run your ruby code as
Hi,
I am having several problems using Ruby on Rails through cPanel. The
main problems come when using Ruby Gems.
They seem to install correctly, however errors are caused when I try to
include them in the application.
cPanel states;
"Using Your Ruby Gem(s)
You will need to add /home/***/ruby
Check out one of the cache money forks on GitHub. I believe one of
them has fixed this problem.
On Jun 10, 4:30 pm, davis wrote:
> I have been attempting to use cache-money on a new project and ran
> into a major problem. Normally it seems to be working as advertised
> but completely falls ove
I am now a new member of Slicehost. Thanks everyone for assisting me
here.
--
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 gr
After switching to passenger from WEBbrick I keep getting "attempt to
write to read-only database", so I chown'd the sqlite file apache.apache
and chmod'd 666, now I get "unable to open database file"?
-MK
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--
Not to beat a dead horse, but your routes.rb file is pretty clear on
this.
...
# You can have the root of your site routed with map.root -- just
remember to delete public/index.html.
# map.root :controller => "welcome"
...
On Jun 10, 10:52 am, Phlip wrote:
> wejrow...@gmail.com wrote:
> > So if
Älphä Blüë wrote:
[...]
> Click the link and you'll see what I mean. It may just be an old post.
> From the way I was reading it, the .erb files in views are converted..
>
> Maybe I'm misunderstanding this..
Indeed you are. That's just a little script to automatically convert
all your ERb fi
Basically... the class variable is shared by all instances of the
controller in question spawned by the Rack server process.
Multithreaded Rails handles multiple requests simultaneously, and thus
multiple simultaneous instances of the controller. Two requests come
along, one from 1.1.1.1, then one
Marnen Laibow-Koser wrote:
>
Thanks for the clarification on that. So, I don't have to do that and I
can still use haml in my projects...
Many thanks!
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You received this message because you are sub
Really Bill??? Wow, in my opinion it's hard to imagine a worse
activity to promote. I'm sure there are hundreds if not thousands of
people who would like to advertise themselves here.
I thought the general consensus was that it was OK to post very spot-
on-topic jobs but not your own services?
Älphä Blüë wrote:
[...]
> I noticed you said you use Ruby EE for production hosting. I've been
> looking into this as it seems very interesting. Is Ruby EE difficult to
> setup?
No. You may have to adjust a few symlinks, but that's not hard and
there's info on the Web about what exactly y
For clarification the bare bones applies to "all" slices but the list of
installed applies to ubuntu - which was what I was asking about...
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to th
Marnen Laibow-Koser wrote:
> Älphä Blüë wrote:
>> Quick question before I commit..
>>
>> I'm using netbeans IDE 6.5 when interfacing with my project. How do the
>> haml/sass conversions take place for my project files?
> [...]
>
> What conversions? I don't understand what you're asking.
> Be
Okay I received my answer:
Reply was:
As previously stated, our images are bare bones installations and do not
come with many common applications such as Apache, MySQL and PHP
pre-installed.
I have attached a list of the installed packages on a default slice.
adduserinstall
apt
Älphä Blüë wrote:
> Quick question before I commit..
>
> I'm using netbeans IDE 6.5 when interfacing with my project. How do the
> haml/sass conversions take place for my project files?
[...]
What conversions? I don't understand what you're asking.
Best,
--
Marnen Laibow-Koser
http://www.mar
Marnen Laibow-Koser wrote:
> Not quite. SSH is there, and I seem to remember that Apache is as well.
> I think Ruby is also, but I use Ruby EE for production hosting, which is
> a relatively simple installation. I've never looked for PHP or mySQL,
> since I don't really use either one.
Marne
009/6/10 Jodi Showers :
>
> Makund - it is quite likely that your solution will break when
> multithreading arrives (as will will loads of other stuff)
Could you explain why please, for the uninitiated?
Thanks
Colin
--~--~-~--~~~---~--~~
You received this message
johnmcau...@gmail.com wrote:
> Thanks for your reply.
>
> How would I get a count without passing an entire array of objects?
Call #size on the array before passing it? Or am I misunderstanding
what you want?
>
> j
Best,
--
Marnen Laibow-Koser
http://www.marnen.org
mar...@marnen.org
--
Pos
Quick question before I commit..
I'm using netbeans IDE 6.5 when interfacing with my project. How do the
haml/sass conversions take place for my project files? Is this
something I run with a ruby script?
For instance, I saw something on the web like this:
http://snippets.dzone.com/posts/sho
Älphä Blüë wrote:
> Has anyone developed extensive projects with HAML and SASS and is it
> worth the effort to convert and utilize those markup languages?
Absolutely (in particular if you use the Haml >2.1.0 or the haml-edge
gem)! Haml is basically HTML with less typing. Sass is a really,
rea
I have been attempting to use cache-money on a new project and ran
into a major problem. Normally it seems to be working as advertised
but completely falls over when attempting to register a background
task with BJ. Here is the error:
NoMethodError (You have a nil object when you didn't expect
Hi Everton,
On Wed, 2009-06-10 at 00:11 -0300, Everton J. Carpes wrote:
> Really, sorry!
>
> On Tue, Jun 9, 2009 at 11:17 PM, PP Junty
> wrote:
>
> from the new topic page, just above the submit button:
> "Attention:
> posting any kind of advertisement for comm
Has anyone developed extensive projects with HAML and SASS and is it
worth the effort to convert and utilize those markup languages?
The reason why I ask is I'm getting ready to dive down into my views and
work with CSS and the HTML and I'm trying to find ways to improve upon
my coding..
Thanks.
Fernando Perez wrote:
> Kendall Gifford wrote:
>> Can you verify that you're getting cookies (specifically your session
>> ID) from IE6/Safari on Windows?
> Indeed in Safari I don't get the cookies! How is that possible? They
> should be accepted.
Ok I found the problem: underscores in the hostn
Kendall Gifford wrote:
> Can you verify that you're getting cookies (specifically your session
> ID) from IE6/Safari on Windows?
Indeed in Safari I don't get the cookies! How is that possible? They
should be accepted.
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~---
Okay,
another issue:
There are persons with the same names. I need to group them by their
names and add their age(the ones that have same name).
this table:
---
NAME | AGE
John | 23
Abe | 45
Amy | 40
John | 7
John | 5
Amy | 5
---
would turn into
---
NAME | AGE
Oh waitit;s so easy...just close the div in javascript. Bingo!
On Jun 10, 2:39 pm, JannaB wrote:
> Frederick
>
> Either one -- but niether get hit:
>
> def sendmail
> recipient = params[:email][:recipient]
> subject = params[:email][:subject]
> message = params[:email][
It turns out that the instructions for deploying a site with
passenger are different for Dreamhost. You have to enable Passenger in
a domain management panel and then FTP your application. However,
Dreamhost admits that their process of deploying and starting up a
Rails application does not full
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 fr
Thanks for your reply.
How would I get a count without passing an entire array of objects?
j
On Jun 10, 7:29 pm, Marnen Laibow-Koser wrote:
> johnmcau...@gmail.com wrote:
> > Hello Everyone,
>
> > Does anybody know how to use rest to deliver non-active record models
> > in rails 2.3.2.
>
> [.
Person.all( :conditions => [ 'created_at BETWEEN ? AND ?',
Time.now.at_beginning_of_day, Time.now.at_beginning_of_day + 1.day ] )
-
Maurício Linhares
http://codeshooter.wordpress.com/ | http://twitter.com/mauriciojr
On Wed, Jun 10, 2009 at 3:46 PM, Bruno
Sousa wrote:
>
> Hi everyone,
> 'Person
On Jun 10, 7:46 pm, Bruno Sousa
wrote:
> Hi everyone,
> 'Person' migration includes timestamps.
> I want to find every person created 'today'.
>
> Tried the command below, but I think it compares hour,minute and seconds
> too. I just want to compare day,month and year.
> Person.find(:all, :cond
Hi everyone,
'Person' migration includes timestamps.
I want to find every person created 'today'.
Tried the command below, but I think it compares hour,minute and seconds
too. I just want to compare day,month and year.
Person.find(:all, :conditions => {:created_at => Time.now})
any clues?
--
Po
Frederick
Either one -- but niether get hit:
def sendmail
recipient = params[:email][:recipient]
subject = params[:email][:subject]
message = params[:email][:message]
returnadd = current_associate.email
puts "about to send"
mymail = Emailer.create_conta
johnmcau...@gmail.com wrote:
> Hello Everyone,
>
> Does anybody know how to use rest to deliver non-active record models
> in rails 2.3.2.
[...]
Just set up a suitable controller (with RESTfully named methods), and
get the data from wherever you need it. Then send it out as JSON, XML,
or what
You should post your solution for someone else's future reference.
On Jun 10, 8:27 am, lecielbleu wrote:
> i solved thanks :)
>
> On Jun 10, 2:02 pm, lecielbleu wrote:
>
> > hi ,
> > i cant succeed add variable in xpath (libxml)
> > brand = "037"
> > xpath = "//Root/s...@category='601' and @Bra
Älphä Blüë wrote:
[...]
> You have to setup your SSH, firewall, Apache, PHP, MySQL, Ruby etc. all
> from scratch.
Not quite. SSH is there, and I seem to remember that Apache is as well.
I think Ruby is also, but I use Ruby EE for production hosting, which is
a relatively simple installation.
wejrow...@gmail.com wrote:
> So if I want to grab info from various Models and put it on the main
> Index page how does that work? Since there's no main index view or
> controller?.. or is there?..
Rails's default index.html file tells you what to do there.
--
Phlip
--~--~-~--~---
..
--
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 t
I'm working on a 3 column grid of draggable objects. Draggables are
Droppable on any other Draggable, where they are placed just above after
a successful ajax call. I have all logic and ajax stuff in place.
Its kinda working, but - the interface is quite jumpy, and seems to have
a problem moving
> I would question the wisdom of doing that - it may work in the short
> term, but you may find it breaks other stuff.
Thanks for the reply - I've just discovered default_scope, which is
exactly what I want. Now I just have to figure out how to do the inner
join in rails.
> In this case thoug
So try: layout 'template_name', :except => :my_action
where :my_action is the action you don't want rendered in the context
of the specified layout.
On Jun 10, 10:15 am, grasshopper wrote:
> Hello all,
>
> I'd like to use " layout 'template_name' " in a controller. However,
> I'd also like to h
Can you verify that you're getting cookies (specifically your session
ID) from IE6/Safari on Windows?
On Jun 10, 10:47 am, Fernando Perez
wrote:
> Hi,
>
> I cannot log in to my Rails application using Windows and Safari or IE6.
> Windows + Firefox works, and Safari or Firefox on Osx works also.
On Jun 10, 5:46 pm, JannaB wrote:
> I have an ActionMailer, which has a corresponding controller (shown
> below). The form to create the email gets invoked from another form, a
> list of names and email addresses from another Model. I would like to
> return to this list after the mail is sent (
Got it!
Either of these work:
map.connect "", :controller => 'mycontroller', :action => "index"
map.root :controller => "mycontroller"
I just had to delete the index.html in the public directory.
--~--~-~--~~~---~--~~
You received this message because you a
Anyone know off hand what that would be to connect a controller and
view to the main index.html?
been looking around, seems this should do it?
map.connect "/", :controller => 'the5one', :action => "index"
Tried a few combinations of that.. can't get it going.. I'll fiddle
around a bit more..
-
:content_type =>['application/pdf']
--
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@google
Hello all,
I'd like to use " layout 'template_name' " in a controller. However,
I'd also like to have an action on this controller not be rendered
within this layout template rather just render the action's
corresponding view.
Can this be done?
Thanks
--~--~-~--~~~-
Hi,
I cannot log in to my Rails application using Windows and Safari or IE6.
Windows + Firefox works, and Safari or Firefox on Osx works also.
What in hell is going wrong?
I recently switched my app from restful_auth to authlogic, could that be
the reason? I don't remember having these authenti
I have an ActionMailer, which has a corresponding controller (shown
below). The form to create the email gets invoked from another form, a
list of names and email addresses from another Model. I would like to
return to this list after the mail is sent (for now, however, I am
merely trying to retur
On Jun 10, 12:02 pm, "Älphä Blüë"
wrote:
> For those of you using slicehost, can you confirm or add to any of my
> notes and/or provide some of your own experiences with setup? Did you
> find it very difficult? How about porting over sites from another
> webhost to slicehost.
I started using
2009/6/10 Älphä Blüë
>
> Okay I did some more research into slicehost and spoke with people
> regarding that site:
>
> The good news is they have a good article foundation for setting up
> slices.
>
> However, each slice (vps) is bare bones and has to be setup completely
> from scratch. This mea
Solved it!!
I just bluntly uninstalled lots of gems including the Rails
installations. And reinstalled the primary ones. Now it starts!
Thanks for your time!
On 10 jun, 17:42, jan.javi...@gmail.com wrote:
> Here it is:
>
> => Booting Mongrel
> => Rails 2.3.2 application starting onhttp://127.
Hello Everyone,
Does anybody know how to use rest to deliver non-active record models
in rails 2.3.2. I am using flex as a front end for a huge data set
and I end to crunch the numbers on the back end before passing arrays
of counts through to the visualisation.
Any help greatly appreciated.
--
Okay I did some more research into slicehost and spoke with people
regarding that site:
The good news is they have a good article foundation for setting up
slices.
However, each slice (vps) is bare bones and has to be setup completely
from scratch. This means that they have absolutely nothin
I've seen this before - it's typically a sign that something has
screwed up the inherited callback for AR::Base. And a quick look at
the rubycocoa source shows this:
(in
http://rubycocoa.svn.sourceforge.net/viewvc/rubycocoa/trunk/src/framework/src/ruby/osx/objc/active_record.rb?revision=2232&view
I see. My problem is I have non activerecord ruby models that I need
to pass using restful webservice, so you ahve any idea how I go about
that?
On Jun 10, 4:18 pm, Frederick Cheung
wrote:
> On Jun 10, 3:17 pm, "johnmcau...@gmail.com"
> wrote:> Hey Everyone,
>
> > I've been forced to handle php
wejrow...@gmail.com wrote:
> So if I want to grab info from various Models and put it on the main
> Index page how does that work? Since there's no main index view or
> controller?.. or is there?..
There can be. You can map the root path to anything you want -- check
the routing docs.
Best,
--
Here it is:
=> Booting Mongrel
=> Rails 2.3.2 application starting on http://127.0.0.1:3020
E:/inet/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/
active_support/dependencies.rb:440:in `load_missing_constant':
uninitialized constant ActiveSupport::Cache (NameError)
from E:/inet/ruby
Thanks for the suggestion, but I was anxious cleaning all of them as I
use some old projects. But to get rid of all the fuzz I cleaned them.
So no I have:
actionmailer (2.3.2)
actionpack (2.3.2)
activerecord (2.3.2)
activeresource (2.3.2)
activesupport (2.3.2)
bones (2.5.1)
capistrano (2.5.5)
cgi
Show the full backtrace of the error.
-
Maurício Linhares
http://codeshooter.wordpress.com/ | http://twitter.com/mauriciojr
On Wed, Jun 10, 2009 at 12:33 PM, wrote:
>
> Thanks for the suggestion, but I was anxious cleaning all of them as I
> use some old projects. But to get rid of all the fu
Wow, thanks for such great feedback Perry and Fred! You both hit the
point from multiple angles, all of which are important. Thank you
both very much for your help!
On Jun 9, 6:02 pm, Perry Smith
wrote:
> Phoenix Rising wrote:
> > So - and somebody please verify or correct my understanding - a
So if I want to grab info from various Models and put it on the main
Index page how does that work? Since there's no main index view or
controller?.. or is there?..
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby
I am nearing the end of a project I have been working on and trying to
figure out if deploy on the app engine with jruby is a good option.
They offer a tremnedous amount of bandwith, storage, etc so it is very
tempting.
i dont have any expreiences on deploying projects on jruby and was
hoping to
Wow, you have thousands of versions of the same libraries, why don't
you start by deleting them?
gem clean
Should do it. Maybe you're getting a conflict of old gems trying to
access new rails code.
-
Maurício Linhares
http://codeshooter.wordpress.com/ | http://twitter.com/mauriciojr
On Wed,
Hi
After having updated some GEMS I get `load_missing_constant':
uninitialized constant ActiveSupport::Cache (NameError) on starting
the server of a freshly generated rails project.
Before, I already had Rails 2.3.2 projects succesfully running, now
all of them generate this error.
These are my
On Jun 10, 2:58 pm, JannaB wrote:
> I am using Rails 2.3, and trying to get ActionMailer to work. I have
> it configured properly, have followed a very feeble example I have
> found (http://www.tutorialspoint.com/ruby-on-rails-2.1/rails-send-emails.htm
> ) but I'm kind of stumped on a few thing
On Jun 10, 3:17 pm, "johnmcau...@gmail.com"
wrote:
> Hey Everyone,
>
> I've been forced to handle php for the last year and am returning to
> rails just now but i am stuck on simple web services. I think AWS has
> been removed from rails 2.3.2. Then, how do you develop a
> webservice? I have
in my routes I have a route
new_program_registration GET/programs/:program_id/
registrations/new(.:format)
{:action=>"new", :controller=>"registrations"}
to register a user in a training program
I preset the objects in the registrations_controller : @program ,
and @user=User.new
and
Makund - it is quite likely that your solution will break when
multithreading arrives (as will will loads of other stuff)
On 9-Jun-09, at 6:41 AM, Mukund wrote:
>
> Have a look at active_record::observers and wrap the save method with
> an update to the ip address. Declare a class level varia
Lakshmi Narayana wrote:
> you can use jquery tree which is very simple and loads fast..
>
> the url for demo is http://abeautifulsite.net/notebook_files/58/demo/
>
>
>
>
>
> On Wed, Jun 10, 2009 at 7:40 PM, Salil Gaikwad <
Is this tree only used for the File Folders or i can use this for th
Developer In London wrote:
> I would also look at mosso or rackspacecloud. Their price as I said
Checking that out..
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby
you can take a look at this also...
http://bassistance.de/jquery-plugins/jquery-plugin-treeview/
On Wed, Jun 10, 2009 at 7:51 PM, Lakshmi Narayana wrote:
> you can use jquery tree which is very simple and loads fast..
>
> the url for demo is http://abeautifulsite.net/notebook_files/58/demo/
>
>
>
I would also look at mosso or rackspacecloud. Their price as I said before
is a bit more competitive then their own Slicehost.
2009/6/10 Älphä Blüë
>
>
--
cashflowclublondon.co.uk
("`-''-/").___..--''"`-._
`6_ 6 ) `-. ( ).`-.__.`)
you can use jquery tree which is very simple and loads fast..
the url for demo is http://abeautifulsite.net/notebook_files/58/demo/
On Wed, Jun 10, 2009 at 7:40 PM, Salil Gaikwad <
rails-mailing-l...@andreas-s.net> wrote:
>
> Hi All,
>
> I want to Display a Tree using Rails. earlier i diplay
Hey Everyone,
I've been forced to handle php for the last year and am returning to
rails just now but i am stuck on simple web services. I think AWS has
been removed from rails 2.3.2. Then, how do you develop a
webservice? I have searched about, including this list and founding
nothing coheren
Hi All,
I want to Display a Tree using Rails. earlier i diplay tree using rails
& Dojo which works fine but as it takes too much time to load. Now i
want to create a Tree using pure rails or Rails and Javascript libraries
other than Dojo.
I would also like to see any links where i can see
Marnen Laibow-Koser wrote:
> Älphä Blüë wrote:
>> My research list for VPS sites will be:
>>
>> Slicehost
> [...]
>
> Slicehost is *great*. Excellent management interface, wide selection of
> distributions, no hassle. I generally set up my clients' slices there
> with Ubuntu (usually an LTS
I am using Rails 2.3, and trying to get ActionMailer to work. I have
it configured properly, have followed a very feeble example I have
found ( http://www.tutorialspoint.com/ruby-on-rails-2.1/rails-send-emails.htm
) but I'm kind of stumped on a few things (for one, what is
request.xhr ? I cannot e
Frederick Cheung wrote:
> On Jun 10, 1:45�pm, Perry Smith
> wrote:
>> Frederick Cheung wrote:
>>
>> > apache/nginx rewrite rules can do this
>>
>> I'm worried about redirects. �The server is behind a firewall. �The
>> browser thinks that foo.outside.com is different from foo. �If I am
>> authenti
On Jun 10, 1:45 pm, Perry Smith
wrote:
> Frederick Cheung wrote:
>
> > apache/nginx rewrite rules can do this
>
> I'm worried about redirects. The server is behind a firewall. The
> browser thinks that foo.outside.com is different from foo. If I am
> authenticated to foo.outside.com and then
i had a simple idea.
first, think about:
p = proc{|x| x*2}
we can call the proc with '[]':
p[3] # => 6
there's another way, which caches the result:
p = Hash.new{|h, x| h[x] = x*2}
we have the same interface as a proc call:
p[3] # => 6
then, a little bit more:
class Proc
def memoise
Frederick Cheung wrote:
>
> apache/nginx rewrite rules can do this
>
I'm worried about redirects. The server is behind a firewall. The
browser thinks that foo.outside.com is different from foo. If I am
authenticated to foo.outside.com and then foo happens to ask for
authentication, the br
Emmek on Rails wrote:
>
> I imagine that code "extracts" unique themes from @page.children and
> then iterates through these themes and displays just pages (titles) that
> are children of the current page and belong to proper themes.
>
You might want to look at named_scopes... this sounds like a
i solved thanks :)
On Jun 10, 2:02 pm, lecielbleu wrote:
> hi ,
> i cant succeed add variable in xpath (libxml)
> brand = "037"
> xpath = "//Root/s...@category='601' and @Brand=#{brand}]"
> stack = node.find(xpath)
>
> i used #{brand} but doesnt work
--~--~-~--~~~---
Sergio Angeletti wrote:
> How works Rails if I want to do 2 aplications thath use the same
> database, I don't know how to manage the migrations.
It might take some extra book-keeping on your part if you ever want to
support caches in your applications.
--
Posted via http://www.ruby-forum.com/.
1 - 100 of 119 matches
Mail list logo