Displaying 20 results from an estimated 1000 matches similar to: "[Rails3] Issue in modifying locale and redisplaying page"
2006 May 03
1
Globalize app example anywhere?
Hi!
Is there anywhere tutorial how to create working application using
globalize plugin?
I need to create a site in 3 different languages and i was suggested to
use globalize plugin. I''ve read a bit on globalize wiki page and pdf
from the presentation available on the same page, but i still can''t
figure out how to use it.
1. Can i translate names of models and columns
2010 Feb 09
4
Rails3 pre and protect_from_forgery
I''ve almost entirely converted a rails 2.3.5 app to 3pre. I''m having
some trouble with protect_from_forgery. I had protect_from_forgery set
in application_controller.rb, but run some uploadify ajax stuff in one
of my controllers, where I had protect_from_forgery, :except
=> :add_file set.
In rails 3 I''m getting ActionController::InvalidAuthenticityToken on
the ajax
2011 Jun 09
8
Fail to call
Hi, I''m trying create a user system for a future project but I have a
problem when I want give to my users the "Welcome". This is my code:
#application_controller
class ApplicationController < ActionController::Base
protect_from_forgery
helper_method :current_user
private
def current_user_session
return @current_user_session if defined?(@current_user_session)
2006 Jan 07
2
app no longer runs - MissingSourceFile for any controller
Hello all. I somehow managed to break my rails app running under Apache 2
with fcgi. With any action I try, it throws an exception saying it can''t
find the source file. For instance, requesting an action in my
welcome_controller results in:
MissingSourceFile in <controller not set>#<action not set>
No such file to load -- app/controllers/welcome_controller.rb
The log
2010 Oct 21
4
Authlogic + Rails3 - undefined method `Login' for nil:NilClass
Im new to Rails, and decided to start of with Rails3. After a lot of
searching ive managed to get a little bit of Authlogic working. I''m able
to register a user, login & logout.
Now, I would like to add more features, get more of authlogic working.
I''m using Railscast EP 160 as my reference.
Portions of the code found on the tutorial throw errors: Eg:
<!--
2006 Nov 26
0
[758] trunk/wxruby2: i18n support: added Locale class, methods for get/set languages & encodings
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding:
2012 Dec 12
1
Devise route for confirmation error with :locale
Rails 3.1.3
I have setup devise and i18n . In routes.rb
scope "/:locale" do
devise_for :users, :controllers => { :registrations =>
''registrations'' }
...
end
But in the process of confirmation,
No route matches {:action=>"create",
:controller=>"devise/confirmations",
2006 Jul 03
0
Problem with routes
Hi!
I''ve got small problem with routes and globalize plugin.
Here''s my routes.rb file:
map.connect '':locale/:controller/:action/:id''
map.connect '''', :controller => ''product'', :action => ''index''
map.connect ''admin'', :controller => ''admin/products'', :action =>
2008 Jan 03
3
how to use "link_to" to deliver a parameter?
Hello, there:
I wish A link to invoke such a action together with the parameter
"zh_CN" "cookies/switch_language/zh_CH" to switch language
sellection, and I use the following code:
<%= link_to ''Chinese'', :controller => ''cookies'', :action =>
''switch_lang'' %>
But, how is "link_to" able to convey
2010 Nov 24
2
Puzzled about the rspec tests generated by Rails3
Hi all
I am puzzled about the rspec tests that are generated by Rails3
scaffolding. I am however not sure if this is the correct place to
discuss this issue.
It might be that a rails ML/chat is better suited for that kind of
discussion. It just depends on who is responsible for that code.
Somehow I am too stupid to find that out, so please bare with me if I
produced only noise here.
Cheers
2010 Sep 12
0
observe_field for jquery + rails3
I am porting one application to Rails3 and want to know what is the
right way to do "observe_field" with Rails3?
--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
2010 Oct 21
0
attachment in the database with thumbnail generation - rails3
What is the best solution for handling blob database storage with
rails3?
I used attachment_fu before, but it doesn''t seem to work well with
rails3. Anyone got it working?
paperclip seems nice, but i need database storage for backups and
security.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group,
2011 Dec 02
1
How to implement ActionMailer callbacks for rails3?
Hi,
Is it possible to implement callbacks(like
before_deliver :some_methodes, after_deliver :other_methods) with
ActionMailer in Rails3?
Please somebody help me or give me an idea :)
Already I saw http://railscasts.com/episodes/206-action-mailer-in-rails-3
but it I like to do it as callbacks
--
Best Regards
Abdul Barek
Senior Software Engineer
--
You received this message because you are
2010 Aug 22
1
rails3: t.index in migrations not working anymore
Hello,
I''m playing around with Rails3 and trying to upgrade one of my
applications to Rails 3.0.0.rc and I get an error which should be still
working.
Migration:
t.index :name
When I execute rake:
rake aborted!
An error has occurred, all later migrations canceled:
undefined method `index'' for
#<ActiveRecord::ConnectionAdapters::TableDefinition:0x4b2b6b0>
Does some one
2011 Jan 12
1
gem and rails3: LoadError
Hi everybody,
I''m trying to use the prawn gem into a new rails3 application on debian.
What I did:
As root:
- install rubygems, from
http://rubyforge.org/frs/download.php/73882/rubygems-1.4.2.tgz
- gem install rails
- gem install prawn
- gem install pdf-reader
- gem list | grep prawn =>
prawn (0.8.4)
prawn-core (0.8.4)
prawn-layout (0.8.4)
2006 Mar 16
1
rails3 - example of Amazon S3 on rails
Hi
I''ve done a small rails application for file management on Amazon''s new
service, the storage webservice ''Amazon S3'' (at this time just upload, list
and delete methods are implemented). Maybe someone find it useful as
example.
The source code and a little more information can be found here:
http://caffo.backpackit.com/pub/502395
Best regards
Rodrigo Franco
2012 Jan 16
0
Rails3 logging issue in development.log
I have a rails3 app, i need to log all into development.log, But when i
check after the execution, the development.log is empty...How to rectify
this problem...
*development.rb*
*
*
ApiMofobi::Application.configure do
# Settings specified here will take precedence over those in
config/application.rb
# In the development environment your application''s code is reloaded on
#
2010 Sep 09
0
Rails3: jquery-rails gem sets 'config.action_view.javascript_expansions' but cannot be overriden in 'config/application.rb'
Hello,
I''ve created a new Rails3 app and I''m using jQuery instead of prototype.
Gemfile:
gem ''jquery-rails''
in my config/application.rb I want do the following:
config/application.rb
if Rails.env.production?
config.action_view.javascript_expansions[:defaults] = %w(jquery.min
rails application)
else
2010 Sep 30
0
upgrade to Rails3 question
Hi!
After upgrading to Rails3 and the latest plugins, two of the plugins:
delayed_job and oauth_plugin don''t work.
They display a similar problem, I am not able to use methods they
provide. In delayed_job''s case I can''t use Model.delay.method
(undefined method) and with oauth_plugin adding oauthenticate in the
controller returns undefined method too.
Could I have
2010 Jul 19
0
redcloth with rails3 and ruby 1.9.2
is redcloth working with rails3 and 1.9.2?
I don''t see it here - http://railsplugins.org/
redcloth 4.2.3 throws this exception when trying to use the method
textilize:
uninitialized constant ActionView::Helpers::TextHelper::RedCloth
I might need to use the 1.9.2.
can you guide me how to use the 1.9.2 version? (I assume i''ll have to
clone the repo but not sure what to do next).