Hello,
I am trying to replace default restful routes for a few of my models
to something that looks a bit better.
resources :countries
gives
/countries/:id
should be replaced with
/countires/:country_name
Any ideas on how this could be done?
thanks.
--
You received this message because you ar
Perfect job for permalinks
firendly_id should do the trick for you -
https://github.com/norman/friendly_id
Chirag
http://sumeruonrails.com
On Sun, Sep 25, 2011 at 12:58 PM, slava wrote:
> Hello,
> I am trying to replace default restful routes for a few of my models
> to something that looks a
Great. Just what I was looking for. Thanks.
--
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, send email to
rubyonrails-talk+unsubscr..
> >> Does anyone know how to redirect to the facebook permissions page properly?
> > Use top.location, not window.location.
>
> In which place I have to use top.location .
> I am using gems
> gem 'omniauth', '>= 0.2.6'
I'm not sure how to do it using omniauth. In my apps I do it manually,
having c
Hi all,
I am using rails 3.1 with paperclip. when I try to upload a picture of
type 'jpeg'. picture_content_type value not a image/jpeg. It is storing
some Xadsfdsfdasfc value. I dont get the problem. can you help me.
thanks,
Aashish
--
Posted via http://www.ruby-forum.com/.
--
You received th
On Sep 24, 4:14 pm, Matin wrote:
> C:\Users\Cédéric>SET HOME
> HOMEDRIVE=C:
> HOMEPATH=\Users\Cédéric
>
> C:\Users\Cédéric>SET USERPROFILE
> USERPROFILE=C:\Users\Cédéric
>
> C:\Users\Cédéric>SET HOMEPATH
> HOMEPATH=\Users\Cédéric
>
Problem is the accented characters in the path, which are not pro
On Sat, Sep 24, 2011 at 9:52 PM, NARKOZ wrote:
> I'm looking for alternative of newrelic. Any advices?
http://rubygems.org/gems/rails-footnotes
HTH,
--
Hassan Schroeder hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan
--
You received this
Hi. I'm breaking an existing app out into separate services for
performance reasons, but am not sure about how best to proceed with
handling images.
The model I'm breaking out into a service has multiple images associated
with it. Historically, these were handled with attachment_fu, and moving
forw
Hi,
how can I use checkbox in a form to show all customers from table
customers,
Course Users Customers
= = =
user_id customer_id Customer_name
I would like to select customers from the checkbox list, then add to the
course table only users of
I have an old Rails application that I'd previously upgraded to Rails 3.1
with a lot of legacy features left on; now I want to switch to using jQuery
instead of Prototype, and switch to using the asset pipeline.
I'm trying to tackle the first of those; no idea if that's wise, maybe I
should start
Hello,
C:\Users\Cédric>MKDIR C:\Foo
C:\Users\Cédric>SET HOME=C:\Foo
C:\Users\Cédric>gem install
ERROR: While executing gem ... (Gem::CommandLineError)
Please specify at least one gem name (e.g. gem build GEMNAME)
...
I've tried to install a Win XP Virtual Machine (with VirtualBox), a
Ubunt
dude you must say the gem name ex: gem install rails
Enviado via iPad
Em 25/09/2011, às 15:24, Matin escreveu:
> Hello,
>
> C:\Users\Cédric>MKDIR C:\Foo
>
> C:\Users\Cédric>SET HOME=C:\Foo
>
> C:\Users\Cédric>gem install
> ERROR: While executing gem ... (Gem::CommandLineError)
>Please s
On Sep 25, 3:24 pm, Matin wrote:
> Hello,
>
> C:\Users\Cédric>MKDIR C:\Foo
>
> C:\Users\Cédric>SET HOME=C:\Foo
>
> C:\Users\Cédric>gem install
> ERROR: While executing gem ... (Gem::CommandLineError)
> Please specify at least one gem name (e.g. gem build GEMNAME)
>
gem install rails
or othe
At first u need to tell us what do u want and why newrelic doesn't feet your
needs. It is difficult to suggest otherwise.
--
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.co
So, I have another one problem. How can I do a method in controller,
that the same ".valid_with_captcha?"
When I puts to application_controller.rb
> def valid_with_captcha?
> if self.valid? and captcha_valid? then true else false end
> end
And, supposably, in users_controller.rb
> def update
@ Leoncio Caminha yeah sure I already did what you told me
@ Luis :> OK I'll create a new user with no accented caracter then i
ll see if it's working (maybe it 's my name Cédric who makes issues
hahah :) )
On 25 sep, 20:32, Luis Lavena wrote:
> On Sep 25, 3:24 pm, Matin wrote:
>
> > Hello,
>
>
So I went down the path of Compass->Blueprint with Haml and 3.1.
For the longest time, I couldn't get of the css classes to actually
register. I followed instructions that suggested that every page needs
to have a container div with the class .container.
Then, I followed the chriseppstein / comp
Hey,
My application.html.erb layout is not rendering at all. Its the only
file in the layout folder. I've deleted the public/index.html file.
Whenever i go to http://localhost:3000/
I get the root page view set in routes.rb without the layout. I've tried
adding layout "application" in the applic
YEAHHH it s perfectly working since I created
a non accentued username !!
The problème was the accent on "Cédric".
Thanks so much Luis ;-)
On 25 sep, 23:38, Matin wrote:
> @ Leoncio Caminha yeah sure I already did what you told me
> @ Luis :> OK I'll create a new user wit
I think at this point, the Shibboleth Service Provider itself only
supports Apache and IIS. The integration is straightforward with those
servers. For rails specific authorization, plugging Shibboleth and
Passenger into Apache makes authentication pretty straightforward.
--
Posted via http:/
Hey all... Rails-Super-Newbie question:
I'm trying to package a controller as a gem for rails 3. How do I
make that happen? Should it be an Engine? Is it possible to put my
specs in it as well? Can someone give me some gentle beginner
pointers? I'm having a pretty tough time with the docs and
21 matches
Mail list logo