Displaying 20 results from an estimated 6000 matches similar to: "Usage of ram for Sunspot Search engine"
2010 Jul 02
17
Doesn't work erb engine
I''m new in RoR:)
I have controller and view (/app/controllers/greeting_controller.rb
and /app/views/greeting/index.rhtml /.erb/.html.erb - doesn''t match).
greeting_controller.rb source:
class GreetingController < ApplicationController
def index
@message = "Hello world!"
end
end
index.rhtml source:
<html>
2009 Jun 05
15
Rails Code Indentation
Hi All,
Rails code must be readable, formatted and well indented.
I wanted to do indent code in my previous projects.
Is there any built in rails plugin/gem that can help me to
indent my existing code.
Any ideas will be really appreciated !
NOTE: Please don''t suggest editor plugins.
Thanks & Regards,
Sandip R~
--
Ruby on Rails Developer
http://sandip.sosblog.com
2012 Oct 16
8
<form> tag is self-closing before input fields .. (HAML generator used)
The form is inside a table, enclosing a <tr>
= form_tag admins_backoffice_dashboards_path, :remote =>"true" do
%tr.search
%th= link_to t(:clear), "#", :id => :clearFilter
%th= select_tag :role,
options_from_collection_for_select(Role.global, :id, :name, :selected
=> @role_id )
%th= text_field_tag :email, nil, :value
2011 Jul 11
39
Help filling out a registration (I think it's called multi tenant)
Do you know when you are filling out a registration for a new account, and
you keep pressing next to fill the rest of the information in separate
pages?
I''d like to do that, but I have no idea how.
Basically I have a company model with its information, and a contacts model,
with belongs to my company (also each company has only one contact), and I''d
like for the user to fill in
2011 Dec 02
20
Need Some Guides on Solr with Rails.
Hi Everyone,
I am pretty new to Rails. I have very little idea about everything. But
for my new project i have been asked to do some research on Solr search
and implement it on Rails. Please provide me some link on tutorials and
guides about Solr on Rails. Trouble is... have to do it by tomorrow.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are
2010 Apr 14
35
Conditionally adding a link to a form -- how?
I''ve got two entities created by scaffolding: Expense & Vendor
In Expense#new there''s a form with a Vendors-drop-down and a NewVendor-
button.
The latter button brings up Vendor#new.
The Create button in Vendor#new brings up Vendor#show with Edit & Back
links.
I want to append a third link conditionally to Vendor#show: if the
Expense#new form led to the Vendor#show
2011 Dec 17
39
Stack Level Too Deep Error (can't seem to figure it out)
Hi all,
I am running into a weird issue where my application is giving me a
stack level too deep error. I can''t seem to find where my code is
throwing this error. On the machine I developed this code on, this
error does not show up when I run rails s but when I move the code to
another system to run it this error shows up.
The system that this code runs fine on is a mac os x machine
2011 Jan 08
6
Need help in Installing Rails 3.0.3
This is my gem env
RubyGems Environment:
- RUBYGEMS VERSION: 1.3.7
- RUBY VERSION: 1.9.2 (2010-12-25 patchlevel 136) [i686-linux]
- INSTALLATION DIRECTORY: /home/arjunkishore/.rvm/gems/ruby-1.9.2-p136
- RUBY EXECUTABLE: /home/arjunkishore/.rvm/rubies/ruby-1.9.2-p136/bin/ruby
- EXECUTABLE DIRECTORY: /home/arjunkishore/.rvm/gems/ruby-1.9.2-p136/bin
- RUBYGEMS PLATFORMS:
- ruby
-
2011 Jul 16
9
rake aborted!
hi , I have started to learn ruby on rails and I''m an absolute
beginner . when I try to rake a database like "rake db:schema:dump " I
get this message :
"rake aborted !
unknown database ''cms_development'' "
although I have modified my database.yml and have created my database
before.
I''ll be appreciated if someone can help me with this
thanks
2009 Feb 18
14
guides on css strategy
I''m having to design the UI to a small site, and that means dabbling
in css. I''ve never been able to get any kind of decent idea as to how
to decide on classes and id-ing. I''ve had a sniff around the internet
without success: people seem to be as clueless as me. I''ve even
examined the css/markup of a few sites and it hasn''t been
enlightening.
Does
2012 Jan 17
5
Is their any plugin/gem available to improve performance
Hi All,
I am having an ror application with ruby1.8.7 and rails2.3.5, the
performance of my application is not good enough. Is their any plugin or
gem available to improve the performance. Also I have already optimized
some of my code and db queries by optimizing the mysql query and by adding
indexes, but those are not gave drastic change in the performance.
regards,
Loganathan
--
You received
2012 Nov 26
8
why functional test does not get failure?
The test:
test "should get new" do
get :new, :room_id => @room.name
assert_template(:ne)
end
the template new does not exists but the test does not get failure.
Why?
--
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
2011 Jan 02
6
Database Design
Hello,
I have a user table that stores their username, email address, and
password. (along with salt, etc)
However, now I want to have more complex information associated with
each user (address, etc). I''m no DBA expert, so in terms of
performance, which is better:
- A user table that has all the fields in it (Username, Email,
password, country, state, zipcode, etc)
- A user table that
2010 Dec 06
57
Which RoR to run on Mac OS X for a particular RoR app.
I am extremely new to RoR, I am. I am slowly but surely learning Ruby
and the Rails concepts but the environment is confusing.
I have an application that was written for my company in RoR. It is on a
ubuntu server that is going to be shut down. I want to move the app to
my two Macs (one Leopard and one Snow Leopard). We want to keep the app
to demo a business concept but it can run locally
2009 Nov 17
6
after changed the tag i got the same eror
SyntaxError in Upload#index
Showing *app/views/upload/uploadfile.rhtml* where line *#10* raised:
compile error
app/views/upload/uploadfile.rhtml:10: syntax error
Extracted source (around line *#10*):
7: <% end %>
Trace of template inclusion: app/views/upload/uploadfile.rhtml
RAILS_ROOT: /home/malathi/www/upload
Application Trace <http://localhost:3000/upload#> | Framework
2013 Jan 07
9
Devise Admin View password
Hi Everyone
i am using devise for authentication for my app.
Is there any way, Admin user can view other users password as normal string.
Without storing there password as string in database?
Please advise.
--
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
2009 Nov 11
4
Sessions
I''m an experienced programmer, but new to Rails.
I would like to echo an unanswered question I''ve recently read
elsewhere.
Can any recommend an overview of get/post, cookies, sessions, etc.,
and how Ruby on Rails interacts with all of this?
I''m interested in understanding how to harden a Rails application
Regards
--
Dave
2009 Aug 01
23
Hi doubt in unit testing
def test_check_for_validity
post=County.new(:name=>"myname",:description=>"mydesc")
assert post.save
end
above is the method and when i run unit test it is saying as
1) Failure:
test_check_for_validity(CountyTest) [/test/unit/county_test.rb:10]:
<false> is not true.
what does it say i cannot under stand
please help
--
Karthik.k
Mobile -
2013 May 04
21
Getting started w/ Rails 4
Hi. I''m trying to run Getting started tutorial under Rails 4.0.0.beta1
although it assumes it runs on Rails 3. I was able to get rid of all
errors by wrapping post_params here and there, and installing
protected_attributes Gem for attr_accessible to make sense. Post/
comment CRUD works just fine, but I don''t seem to be able to add Tags
(the final part of the tutorial). Post saved
2012 Oct 27
7
Photo Paperclip::CommandNotFoundError
Hi all,
I am using paperclip plugin. when i am trying to upload photo i am
getting this error " Photo Paperclip::CommandNotFoundError "
and i am getting this error on my server production mode. if i run on
development mode on my server i can able to upload the pic. why this is
happening i have no idea.
can any help me out.
Cheers,
Kp
--
You received this message because