Displaying 20 results from an estimated 70000 matches similar to: "Yield not working upgrading to rails 3"
2010 Jan 31
3
Append/Prepend to a template from controller method
I want a method in app/controllers/application.rb that can
prepend/append text to whatever template gets rendered. Of course I
can''t call render twice w/o getting a double render error, so is this
possible?
I want to redirect after a delay using a meta refresh. Here''s what I''ve
got:
app/controllers/application_controller.rb:
def redirect_after_delay (url, delay)
2011 Mar 09
1
" instead of " in js code rendered by erb
Having problems rendering javascript in erb file. Thanks for
suggestions.
//layout erb file
(function() {
...
var widget_properties = {};
<%= content_for?(:extend_widget) ? "widget_properties = " +
yield(:extend_widget) : '''' %>
...
})();
//view erb file
<% content_for :extend_widget do %>
extend = {
_init: function() {
2010 Jun 21
4
javascript tabs not working in rails app
This is in application.html.erb:
<script type="text/javascript"
src="../javascripts/application.js"></script>
<script type="text/javascript"
src="../javascripts/jquery-1.4.2.js"></script>
<div id="content">
<%= yield :tabContent %>
</div>
2011 Mar 31
3
can i switch to rails 2.3.5 and run a rails 2.3.5 code??
Hi all,
i have installed rails 3 using RVM . the prob is now i have two parallel
projects where one is in 2.3.5 and another is in rails3.
i use Mac o x 10.6.3
mysql :Server version: 5.1.56 MySQL
so can i switch in between rails3 and rails 2.3.8??
this is my gem list...
actionmailer (3.0.5, 3.0.5.rc1, 3.0.4, 3.0.3, 2.3.8, 2.3.5)
actionpack (3.0.5, 3.0.5.rc1, 3.0.4, 3.0.3, 2.3.8, 2.3.5)
2010 Aug 23
7
Sharing sessions between a rails3 app and a rails2 app. Rails 2 app crashes.
Hey all.
I have two apps. One is a rails3 app and the other is a rails 2 app.
Using proxying I am routing actions in the myapp.com/foo to the rails2
app.
It almost works! I can set a session variable and a cookie variable on
the first app (myapp.com) and then read them on the second app
(myapp.com/foo).
It only works the first time though. If I go back to myapp.com and
then revisit
2011 Mar 07
3
.rvmrc file not working?
hello,
i am trying to install gemsets but my .rvmrc file not working so i
have create gem sets with the command rvm gemset create rails3 but
when i am using rvm info its not showing the gemsets in the
environment.. this is the content of .rvmrc file
rvm 1.9.2@rails3 --create..help me guys..
thanks
nishant
--
You received this message because you are subscribed to the Google Groups "Ruby
2010 Aug 12
2
rails 3- Could not find generator session.
Hello,
I am trying to use Authlogic in Rails 3.
when I run " rails g session admin_session" to create the session, I
get-
======================
"Could not find generator session."
======================
I''m using Rail 3 RC and working off the Rail3 Branch now
======================
GemFile:
gem ''authlogic'', :git =>
2011 Jul 18
1
rails server being aborted due to mysql lib file not available
Hi,
My system has the following :
MacOs Leopard
Rails 3
Ruby 1.9
Mysql 5.1.58
mysql2 ruby gems
My problem is that when i give "rails server", the task aborts with
the foll error
rails server/Users/nisha/.rvm/gems/ruby-1.9.2-p180@rails3/gems/
railties-3.0.5/lib/rails/script_rails_loader.rb:11: warning: Insecure
world writable dir /usr/local/bin in PATH, mode 040777
2011 Mar 26
2
Rails 3 + SSL
After reading tons of posts about buying certs, etc, I''m still
confused. Please point me in the right direction. Here''s the
question:
I have a rails3 site (www.mysite.com). I want to have some pages use
ssl, and some not. It appears the require_ssl approach is pre-Rails3
and there are other alternatives. Most of the posts I read talk about
using a diff domain for ssl
2010 Aug 08
1
Why Rails 3 installation is so pane full
Hi all
Why Rails 3 installation is so pane full...?
I am using fedora 10,
ruby 1.8.6
rails 2.3.5/2.3.8
Now want to upgrade to rails3
i tried so many links...
but nothing find essay.. for Rails 3
problem in ruby installation
please suggest good links ...
Thanks....
Regards
Shyam
971-618-9650
shyam.heroku.com
--
You received this message because you are subscribed to the Google Groups
2010 Apr 27
4
Translated (language-aware) routes in Rails application
Hi,
I''d like to have translated languate-aware routes in my application,
like:
/projects/5/permissions => locale "PL"
/projekty/5/pozwolenia => locale "PL"
Is there any way to achieve it with RESTful routes? I have done it
manually with named routes, but it''s overwhelming with over 300
routes :D Also tried namespace (yeah, didn''t work) and
2011 May 26
8
Is there a way I can create a sub-layout with ERB?
I have 2 pages that have almost the same content except for stuff in
the middle. I''d basically like to have a sub-layout that wraps the
content that is different - exactly the way a normal layout file
would.
How can I call into a layout inside of erb? I''d like to do something
like this:
<%= render :sub-layout => "reusable-wrapper" %>
2010 May 22
3
Rails 3: link_to with "data-confirm"
Hi,
has anyone experienced any problems with the new link_to and
data-confirm in Rails3? It seems when you create a link with instead of
link text, an image, the confirm message isn''t shown.
<%=
link_to(
image_tag("delete.png", :alt =>
t("helpers.label.destroy")),
2010 Nov 30
1
rails 3 meta_search usage
I am in the process of upgrading my app from Rails2 to Rails3.
My Rails2 app uses searchlogic heavily.
After googling i''ve come to know that searchlogic is not compatible
with Rails3 and need to use meta_search instead.
But i havent quite understood the usage of meta_search vis-a-vis
searchlogic.
If i have a User model with :name and :address fields, i am not able
to use the following
2011 Sep 19
1
Rails and UJS guide - not having much luck
I refered to http://railsdog.com/blog/2011/02/28/callbacks-in-jquery-ujs-in-rails3/
in hope of getting json data from my controller and displaying it in
my view when an ajax request is made.
I followed the instructions on the http://railsdog.com/blog/2011/02/28/callbacks-in-jquery-ujs-in-rails3/
and even corresponded with the author and also implemented his ''fix''
in
2012 Mar 20
9
Rails 3 generate pdf
Dear All,
i am developing an application with rails 3, and now i need to generate
a pdf file,i search a lot, and try a lot ,such as prawn ,PDFkit and so
on, it seems that prawn is no response in rails3, and when i use PDFKit,
it asked me to install wkhtmltopdf first, i try to install this,but
failed, anyone can help me ?
Thanks very much.
Daisy
--
Posted via http://www.ruby-forum.com/.
--
2010 May 27
1
Question on Rails 3 : forms && ORM && ActiveModel
I''m a Django/Catalyst user that''s evaluating Rails ... I need a Ruby
framework, and I''m trying to see if learning Rails is worth it or I
should just go for Sinatra + various libs available.
Django has a couple of things I like ...
1) the Forms API
In Django I like that it''s being decoupled from models ... form
objects have fields with validation rules that
2010 Feb 05
1
Is there no generator in rails 3?
Hye guys:
Just downloaded the rails3 beta for testing.
But find there is not ''''generator" for me to create some scaffolds.
Any ideas guys?
--Terry
--
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
2011 Mar 28
0
error compiling ruby 1.9.2-p180 while upgrading to Rails 3
gcc -shared -o ../../../.ext/i686-linux/digest/md5.so md5init.o md5.o -
L. -L../../.. -L/home/rails3/.rvm/usr,/lib -Wl,-R/home/rails3/.rvm/
usr,/lib -L. -rdynamic -Wl,-export-dynamic -Wl,-R -Wl,/home/
rails3/.rvm/rubies/ruby-1.9.2-p180/lib -L/home/rails3/.rvm/rubies/
ruby-1.9.2-p180/lib -lruby -lpthread -lrt -ldl -lcrypt -lm -lc
/usr/bin/ld: /lib: No such file: File format not recognized
2010 Oct 27
2
rails version check for gems
I''m seeing a handful of gem bugs on rails3 that are going unresolved
because the fix breaks the gem on rails2.
What is the preferred way to add rails version conditions to a gem?
Is checking the Rails::VERSION::STRING what folks should be doing?
if Rails::VERSION::STRING.start_with?("3")
do rails 3 stuff
else
do what u were doing
end
Seems like that would break something