I solved the problem by adding *ActionController::Routing::SEPARATORS =
%w( / ; , ? ) *in my* routes.rb* file, but an warning message is
displaying as below
config/routes.rb:12: warning: already initialized constant SEPARATORS
Want to know whether this warning will be an issue on future?
Hi,
I am facing an abnormal issue with my Ruby on Rails application. The
application is running with apache, with fcgi module.
When I turned on SSL connection on apache, the application kind of
started working strangely.
Seems like when SSL encryption is on, rails action is executed
thrice
Hello,
I am wondering if there's a good web site where people from across the
globe post RoR job openings and search for jobs. If there's not one such
place, I'd appreciate if you could recommend such job boards in Eastern
Europe, South America and / or India. Thanks!
--
You received this
This code works but looks ugly.
How to merge this two actions?
#verifications/index.haml
- if Ad.unverified_ads.size == 0
- else
= link_to Szybka Weryfikacja,
fast_verify_info_verification_path(Ad.unverified_ads.last), :method
= :put
= link_to Normal Verify, verify_info_verification_path(ad),
i installed the prown gem for getting my data in pdf formate but i
getting error
undefined method `to_sym' for PDF:Module
i used this
def show
@student = Student.find(params[:id])
respond_to do |format|
format.html
format.json { render :json = @student }
format.pdf {
Also keep in mind that you'll need to make sure the debug option is
off otherwise it will force it to render individual assets.
On Jan 17, 8:30 am, johnnybutler7 johnnybutl...@gmail.com wrote:
Hi,
I can deploy to staging fine.
When i try and deploy to production i get the following error
I generally like to use rvm use 1.9.2 --default to make sure that I
always use my preferred installation version.
On Jan 19, 8:27 pm, Francesca Krihely france...@10gen.com wrote:
doh! For anyone who is silly like me,
After install put
rvm use 1.9.2
in the command line
and voilla
ruby
Thanks a lot, this my amendments.
https://gist.github.com/1643261
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To view this discussion on the web visit
https://groups.google.com/d/msg/rubyonrails-talk/-/9nw3zUSoK50J.
To post to this
Hi,
I'm following instructions at http://guides.rubyonrails.org/getting_started.html
But I get the following error when I try rake db:migrate. Does
anybody know what is wrong in my system?
~/RoR_src/blog$ rake db:migrate --trace
(in /Users/pengy/RoR_src/blog)
rake aborted!
uninitialized
On Fri, Jan 20, 2012 at 9:05 PM, Peng Yu pengyu...@gmail.com wrote:
Hi,
I'm following instructions at
http://guides.rubyonrails.org/getting_started.html
But I get the following error when I try rake db:migrate. Does
anybody know what is wrong in my system?
~/RoR_src/blog$ rake db:migrate
No one knows?
I've tried to monkey paths rails to do this, but didn't work.
Please help :-)
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To view this discussion on the web visit
On 22 January 2012 16:10, Nadeem J. Qureshi justagang...@gmail.com wrote:
No one knows?
I don't think anyone really knows what you're asking. What do you mean
by custom headers in a find? Headers have nothing to do with an AR
find. Are you talking about browser headers (I guess it's something to
On Sun, Jan 22, 2012 at 8:10 AM, Nadeem J. Qureshi
justagang...@gmail.com wrote:
No one knows?
I've tried to monkey paths rails to do this, but didn't work.
In four days you haven't yet read the ActiveResource documentation?
Or just tried googling `ActiveResource headers` ?!?
--
Hassan
You could just go into the model and change it's inheritance. I've
never used mongoid but I think that push comes to shove, simply
switching [modeltype] wouldn't be too hard. I'll keep an eye open
for you though and see if I can figure it out.
On Jan 21, 7:41 pm, Mike Kim
Hey guys,
Before I start off, I'm a Rails newbie, so if there is an obvious
solution to this problem, let me know!
I have a simple, blog-like Rails project. In the routes, I have a users
resource with a nested posts resource. Now, this is all fine and dandy
if everything is generated with Ruby.
On 22 January 2012 16:59, Michael Pavling pavl...@gmail.com wrote:
What do you mean
by custom headers in a find? Headers have nothing to do with an AR
find.
Of course... you pointed the ActiveResource, and I've assumed
ActiveRecord. Sorry for that. But still, you're not really doing
enough to
I'll try to rephrase:
I'm trying to forward a cookie from the user-end to the API that
receives the request from ActiveResource::Base.find
What I want to be able to do in my Controller is this:
User.find(1, :headers = { :cookies = session['user'] }
And have this send the cookie from the user
Hi Mateusz,
On Sun, Jan 22, 2012 at 11:29 AM, Mateusz W. li...@ruby-forum.com wrote:
...
Now, if I add an Ajax layer over this, things seem to complicate quite a
bit. Say, if I want to perform some kind of request using jQuery, I need
to be able to know the appropriate path to perform this
I'm having trouble using the open(url) method.
This used to work fine, but I've recently updated gems, and it seems to
have broken. Also, I've switched to running on ree-1.8.7 to try and
mimic my heroku stack. Not sure if that might have something to do with
it as well
at the top of my class I
Hello, I'm trying to connect with a db in my app, but when I go on
config/database.yml the default db is sqlite3, how can I put the mysql
as default ?
# SQLite version 3.x
# gem install sqlite3
#
# Ensure the SQLite 3 gem is defined in your Gemfile
# gem 'sqlite3'
development:
adapter:
thanks for responses
On Jan 21, 4:24 pm, Peter Vandenabeele pe...@vandenabeele.com wrote:
On Sat, Jan 21, 2012 at 9:03 PM, John Merlino stoici...@aol.com wrote:
Object is the root of Ruby's class hierarchy. Its methods are
available to all classes unless explicitly overridden.
Wouldn't
On Sun, Jan 22, 2012 at 2:17 PM, Felipe Pieretti Umpierre
li...@ruby-forum.com wrote:
Hello, I'm trying to connect with a db in my app, but when I go on
config/database.yml the default db is sqlite3, how can I put the mysql
as default ?
`rails new --help`
--
Hassan Schroeder
Hey all,
I am getting this error:
NoMethodError (undefined method `gsub!' for 2012-01-22 17:00:00
-0500..2012-01-23 00:00:00 -0500:Chronic::Span):
in this code:
date_range = Chronic.parse(the_date, :guess =
false)
felipe@Felipe:~/rails_projects$ rails new --help
Usage:
rails new APP_PATH [options]
Options:
-r, [--ruby=PATH] # Path to the Ruby binary of your
choice
# Default:
/home/felipe/.rvm/rubies/ruby-1.9.3-p0/bin/ruby
-b, [--builder=BUILDER]
On Jan 22, 2012, at 23:36 , John Merlino wrote:
Hey all,
I am getting this error:
NoMethodError (undefined method `gsub!' for 2012-01-22 17:00:00
-0500..2012-01-23 00:00:00 -0500:Chronic::Span):
in this code:
date_range = Chronic.parse(the_date, :guess =
On Sun, Jan 22, 2012 at 2:41 PM, Felipe Pieretti Umpierre
li...@ruby-forum.com wrote:
felipe@Felipe:~/rails_projects$ rails new --help
snip/
No need to post the results -- they're the same for everybody :-)
--
Hassan Schroeder hassan.schroe...@gmail.com
i can not trash zlib.so can you help me
--
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 this group,
Ok, but how I can make the mysql be default ?
--
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 this
On Sun, Jan 22, 2012 at 5:16 PM, Felipe Pieretti Umpierre
li...@ruby-forum.com wrote:
Ok, but how I can make the mysql be default ?
Uh, well -- the reason I suggested running that command is that the
answer is in the output. :-)
--
Hassan Schroeder
On 01/22/2012 06:16 PM, Felipe Pieretti Umpierre wrote:
Ok, but how I can make the mysql be default ?
To make mysql the default when you run rails new you would have to
modify the rails code somewhere (If you cannot figure out where on your
own you should not try to modify it). To change the
In 3.2 you can define .railsrc with custom command line options that will
always apply to rails new
Sent from my iPhone
On Jan 22, 2012, at 8:01 PM, Norm Scherer normsche...@earthlink.net wrote:
On 01/22/2012 06:16 PM, Felipe Pieretti Umpierre wrote:
Ok, but how I can make the mysql be
Well, ideally I would like to have the views and javascripts split. I
don't want to embed any javascript within my view. Something like this:
http://bitprison.net/rails3_dynamic_javascript
This, however, will make each user have their own javascript, since it
has to be dynamically generated.
Hai!
I have two controller. the one is first_controller and another one is
second_controller.
first_controller.rb
def login
.
.
if @user @user.password == params[:user][:password]
session[:user_id] = @user.id
redirect_to :controller = second_controller, :action = index
end
end
require 'net/http'
def http_connection
@http_connection = Net::HTTP.start(host, port)
@http_connection.post(uri_path, params)
@http_connection.finish
@http_connection = nil
end
I hope it is work
Try this way
Bye:)
bdeveloper01
--
Posted via http://www.ruby-forum.com/.
--
You
I am having trouble with the Ruby on Rails for a windows 7 PC.
During the installation on Ruby it said missing file 'lib'
Then every time I try to generate a scaffold or controller it says
Could not find a JavaScript runtime. See
https://github.com/sstephenson/execjs for a list of available
I've run in to a strange situation where it would be great if there were a
way to use redirect_to :back to skip back over the previous page and go
to the previous, previous page ( :back X 2.) Any one have any ideas how to
do this? I think I might end up trying to use the session some how,
36 matches
Mail list logo