Displaying 20 results from an estimated 100 matches similar to: "Any rails experts able to offer some advice?"
2012 Aug 16
1
[error] rake db:create
i try run this command
but appear this error someone can help me?
see the error:  http://paste.ideaslabs.com/show/IFSSXASQyM
-- 
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-core/-/XRxX9RXunsYJ.
To post to this group, send email to
2012 Jul 26
2
Using the :layout option when calling render @variable
Hey everybody,
I wanted to use the :layout option when calling render @variable (where 
@variable is some ActiveRecord class instance with a corresponding 
variables/_variable.html.erb partial view), but as far as I know, Rails 
doesn''t support this.
Here''s a quick patch that allows to use the :layout function:
In partial_renderer.rb, add the following elsif block:
      if
2013 Jan 23
2
Problem with Bootstrap-SASS
I''ve installed bootstrap-sass, and added an @import line in my css. Rails 
won''t find or serve up the bootstrap files. One error msg on the Mozilla 
console says:
   The stylesheet http://localhost:3000/assets/bootstrap was not loaded 
because its MIME type, "application/javascript", is not "text/css".
Hmm. If I change the @import to say
2013 Mar 28
1
undefined method 'sanitize_limit' for #<ActiveRecord::Relation:0x2aaaad35d720>
I am trying to upgrate rails from 3.0 to 3.1, while updating rails version 
I am getting following error
rake aborted!
undefined method `sanitize_limit'' for 
#<ActiveRecord::Relation:0x2aaaad35d720>
/some_package/lib/ruby/gems/1.8/gems/activerecord-3.1.12/lib/active_record/relation.rb:460:in 
`method_missing''
2011 Apr 25
3
Active Record database time logging
I''ve been having a look through the code responsible for printing how
much time was spent in Active Record at the end of an action. My
reading of the code + experiments suggests that any database time
after the render is not counted.
It seems to me that in controller_runtime.rb in Active Record,
append_info_to_payload should in fact read
def append_info_to_payload(payload)
  super
 
2012 Sep 11
4
Should i buy Ruby on Rails 3 Essential Training with Kevin Skoglund from Lynda.com
hello people, i m new to rails and i m thinking of buying Ruby on Rails 3 
Essential Training with Kevin Skoglund tutorial
http://www.lynda.com/Ruby-on-Rails-3-tutorials/essential-training/55960-2.html
but problem is the tutorial is created on 2010 oct => so its 2 yrs old 
so my question it is fine to Buy these Tutorial in the changing rails world?
Please Help me
-- 
You received this
2008 Jun 12
11
auto_complete with multiple params
I''m using the auto_complete plugin, and it works great, my problem is i
need to pass multiple parameters to the controller other that what is
typed in the text field.
<%= text_field_with_auto_complete :search, :contains, :size => 15,
:frequency => 0.1, :skip_style => true -%>
This is what i have as of now, but i also need to pass ":language =>
@default"
2008 Dec 28
7
2.2.2 simple_captcha upgrade error
So thanks to Craig, i got up and running on rails 2.2.2, though now i''m
dealing with a whole new can of worms. I''ve done a good bit o searching
and haven''t found any solid leads. I''m using the simple_captcha plugin
on my site, and all is well until i call that plugin.
http://www.pastie.org/347721
ActionView::TemplateError (undefined method
2013 Jan 25
9
Object#tap_if and Object#tap_unless
I originally brought this up in: https://github.com/rails/rails/issues/9067
Rails paved the way for Object#tap and Object#try...I''d like to propose 
Object#tap_if and its counterpart,Object#tap_unless.
I''ve been following 37signals conventions of tapping variables in the views:
<% account.owner.tap do |user| %>
  ...
<% end %>
But, I find myself having to do this
2006 Aug 22
2
Mongrel and Service behave differently
I have a rails application running under the latest version of Mogrel Win32.
Seems to run just fine. However, when I attempt to run it under the Win32
Mongrel service, it appears to hand after hitting certain controller
actions. I''m sure there is a bug in my code that''s causing this - but I just
am not sure what it is yet.
Is there anything about the mongrel-service that would
2009 Jan 31
9
Maxima and Ruby Integration
I''m looking to write a javascript heavy clientside program with a
something serverside backend that connects to the free maxima math
program. I have extensive knowledge of ruby on rails, so I would prefer
to call Maxima with ruby, but I don''t know if this is even possible. Its
fairly easy to call Maxima (with a lisp implementation) using ANSI C, it
is a little less easy to
2009 Apr 01
3
make a <tr>clickable
I would like to make an entire table row clickable so the user will be
directed to another url. If i was using hand written javascript i would
just add an onclick to the <tr>, but i want to use rails routes and to
be able to pass in parameters from ruby. What is the best way to
accomplish this?
<tr onclick = <%= link_to my_route_path %> > <td>content</td></tr>
2008 Oct 28
3
Backwards N+1 problem
Hey, i’m running into an N+1 problem, but i don''t exactly know how to
:include in this situation. (controller code is at the bottom).
 I''m trying to find all of the highest ranked definitions, and then
render their associated phrases.
A Phrase has many definitions. A Definition has many children
I already have all the info i need stored in @definitions, so this
should only
2007 Dec 12
3
merbful_authentication
Since there are so many efforts at the moment to port restful_authentication
I figured I''d put a repo up so that it can be a collaborative effort.
You can pick up a copy of the repo at
git clone http://snatcht.com/git/merbful_authentication.git
at the moment the app is in a branch.  Not in the master.
get the branch by
git checkout -b remote/initial origin/inital_repo
At the moment
2006 Nov 13
2
Rails Camp Scaling Session notes
Here are some notes from the scalability session of last week''s Rails 
camp.  They were entered by another session participant and are posted 
at:
http://www.rubyonrailscamp.com/10%3A15%2Bsession%2B-%2Bscaling
The key points from my point of view:
- the Ruby VM is sketchy, rather like the Java VM around 1997
- the single threaded nature of Rails dispatch handling means we may 
incur a
2008 Dec 02
2
Does a method string.to_class exist?
I have A Definition model, is it possible to do something like this in
Rails 2.1.0, Ruby 1.8.6 :
foo = "Definition"
@definition = foo.to_class.find(:all)
-- 
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,
2008 Jul 07
1
link_to_remote multiple :with =>
i have a link to remote and i need to pass two values provided by select
boxes to it, a language, and a page count (hits per page to be
paginated) how do i get the code below to send both arguments??
<%= link_to_remote "#{element}", :update => "a_z_replace", :loading =>
"Element.show(''a_z_indicator'')", :loaded =>
2008 Dec 02
1
form_for with partial using do |@f|
Is it possible to pass this FormBuilder object to a controller and then
back to a partial?
I have a form rendering a partial that i would like to update with a
call to my controller based on user selectable parameters, but when the
AJAX comes back, i get this error message because i cannot pass a form
builder object between the controller and the view:
"undefined method
2008 Nov 21
1
uninitialized constant ActionController::Caching::Fragments
Hey, i''m trying to use "s3cache" plugin with my app, but after adding it
to my vendor/plugins directory and following the install steps i''m
getting this error after running script/server:
/Users/richardschneeman/Documents/AptanaStudio/slangasaurus/vendor/rails/activesupport/lib/active_support/dependencies.rb:275:in
`load_missing_constant'': uninitialized
2008 Apr 29
5
Sharing: dont_repeat_yourself plugin custom RSpec matcher
I wrote a Rails plugin which uses simian to look for duplicates lines in your
code and reports in html format, Textmate or Netbeans.
I wrote it using RSpec and I have included a RSpec custom matcher:
it { rails_application.
with_threshold_of_duplicate_lines(4).
  should be_DRY }
If you use Autotest, your specs will fail the next time you do a nasty
copy-paste !!!
More details in