Hi,
I'm running Rails 2.3.5 Ruby 1.8.7 on Windows XP.
I have two partials:
1. File app\views\warehousing\_index.html.erb has
.
%= select_tag(:filter_by_category, option-Select a category-
/option +
options_from_collection_for_select(Categories.find(:all, :order =
'name'),
We are a small team of three individuals based in South East Asia
(Indonesia/Singapore), developing a unique Asian focused multi-
language web application using what we believe to be a unique and
viable business model. Whilst two of us have extensive programming
experience we are new to Ruby on
Hi Joshua, thanks for the kind words.
What kind of bug tracking system do you use? Let me know and perhaps
we can give you an api or something easy to build to let you
escalate problems to the TechLive queue for a war room session!
Will do what we can. Have been using a lot of community stuff to
Steve, were you able to find a solution for this? I am dealing with
the same exact error. It says rake-0.8.7 installed fine but I get an
error that it can't find the executable.
Thanks,
Kevin
On Oct 3, 1:32 pm, Steve Mills li...@ruby-forum.com wrote:
OK. I checked these things.
gem
I've been banging my head against this for a while, and would love to
see someone prove that I am just overlooking something simple.
I am trying to add a custom route to my RESTful resource. Because
route is destructive, I want to use POST http method. If I hack my
routes.rb to use GET,
Thanks for this. I'm about to try and implement it, appreciate this is a
little OT, but has anyone got any more tips for me or even a quick
example.
Just to be clear, I'm using passenger - will that get in the way or also
need any configuration?
--
Posted via http://www.ruby-forum.com/.
--
On 18 October 2010 04:38, Marnen Laibow-Koser li...@ruby-forum.com wrote:
Rahul J. wrote in post #954924:
[...]
Also i am not preffering associations to get the complete user field, as
its not being needed.
Then you are most likely being stupid.
I think that is a bit harsh Marnen, one can
Hi, I am moving to mac os x 10.5.6 and wanted to update rails from
Rails 1.2.6 to something higher, so I typed in my terminal sudo gem
update --system it just doesn't seem to work. Always when I try to
update in terminal it gives me out this error :ERROR: While
executing gem ...
Someone's suggested that actually using virtual hosts maybe a better way
for me to do this? Thoughts?
--
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, send email to
Luke Cowell wrote in post #954803:
At the end of the day, the most important thing is that it works.
However, I think we should try to get the database do the work. I'll
apologize in advance that this example is rails2.
# Project - TaskList - Task
Project.all(:group = projects.id, :joins =
Hi Kevin.
In the end I uninstalled Ruby 1.9.2 and installed version 1.9.1 and the
problem went away.
Kind Regards
Steve
--
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,
Ive got a like and video model.
On a Video page, Users can click a link (like) button which will
allow them to like a particular video.
Since my like button/image comes in the form of a link and not an
actual html form. How should this be implemented? Do I need to specify
a :method = puts in my
AJAX - set the onClick property to point to a function that sends the
request to the server.
On Mon, Oct 18, 2010 at 7:25 AM, Christian Fazzini
christian.fazz...@gmail.com wrote:
Ive got a like and video model.
On a Video page, Users can click a link (like) button which will
allow them to
Ajax is how I am definitely going to implement this with.
However, I need to how to do this without js first.
On Oct 18, 7:31 pm, Brett Thomas brettptho...@gmail.com wrote:
AJAX - set the onClick property to point to a function that sends the
request to the server.
On Mon, Oct 18, 2010 at
Is it possible for a link to point to the 'create' method of a
controller, passing the necessary values/attributes ?
Or is the only way to do such a thing, through an html form (via
post)?
On Oct 18, 7:42 pm, Christian Fazzini christian.fazz...@gmail.com
wrote:
Ajax is how I am definitely going
Would the Snail gem help?
Thanks Marnen, looks like it may be of use, or at least a starting
point.
I'll play with it and see
Thanks
Tonypm
--
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
Assuming you have the following models: User, Video, Like. If a Like
instance belongs to a video and a user. You could use nested routes in
the following format:
resources :video do
resource :like
end
Which gives you the following URLS:
/videos/1/like
/videos/1/like/1
So then using the
I am new to ROR... I want to search in database using user input.. I am
using sqlite database.
Can anyone guide me?
so far I have done following in model.. I am going in correct way?
Photo_search.rb
def self.search(query)
if !query.to_s.strip.empty?
find_by_sql([select p.* from photos
Yeah, for this setup it's recommended to use virtual hosts along with
modrewrite
So for example you'd have your site like this defined in your
apache.conf
VirtualHost *:80
ServerName www.chalet-yeti.com
RewriteEngine on
RewriteRule ^(.*)$ http://localhost:3000/properties/1/$1 [R]
i have download the source code of OpenStreetview.org ,this is a rubyonrails
applcation.but i dont know how to run it on my computer.
i have installed
ruby,rails,apache,mysql(Just install)
Besides this i know nothing.
please somebody help how to run the rubyonrails applcation at server at own
Rohan Deshpande wrote in post #955103:
Photo_search.rb
def self.search(query)
if !query.to_s.strip.empty?
find_by_sql([select p.* from photos where #{ ([(lower(p.title) like
?
or lower(p.description) like ?)] * tokens.size).
else
[]
end
end
Try to find a more
Hi,
If you have created your app then got to your rails directory and run
script/server
If app is not craeted then run rails demo, it will create a rails app
named with demo
On 18 October 2010 19:06, amritpal pathak amritpalpath...@gmail.com wrote:
i have download the source code of
Try to find a more direct approach to your search features. You should
reserve find_by_sql as an absolute last resort. Rails provides an
extensive and power query language and the Rails community has provided
some really nice gems to help with more complex searches:
It might also be useful
On Oct 18, 2:43 pm, bingo bob li...@ruby-forum.com wrote:
Hi Luis,
Thanks for this, I'm getting *really* close I think.
That looks fine and I've tried - the redirects are taking effect but
it's not quite right.
The localhost:3000 part was just on my Mac, now I'm on the server I need
to
Also, before running command script/server, run rake db:migrate in demo
directory path to populate the DB but you need to create teh db first if
using Mysql or Postgresql.
On 18 October 2010 19:17, Amit Kumar amitbar...@gmail.com wrote:
Hi,
If you have created your app then got to your
I am new to ROR.. still learning it.. thanks for ur help.. I will search
for appropriate gems.
--
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, send email to
As Fred metioned. Looks like there's two rewrites here. Only needs to be
done from the Apache side and the other from rails (routes.rb)
I suggest you get the apache site going before attempting the other
rewrite.
Luis
--
http://www.saffie.ca
--
Posted via http://www.ruby-forum.com/.
--
You
Rohan Deshpande wrote in post #955115:
I am new to ROR.. still learning it.. thanks for ur help.. I will search
for appropriate gems.
I hope I was clear that my reply was intended to help and not be a
criticism. I highly recommend that you read through the Rails guides
that I linked earlier.
If you are going to develop in Rails3, I don't think Ruby 1.9.1 is
compatible
Jason
On Mon, Oct 18, 2010 at 6:06 AM, Steve Mills li...@ruby-forum.com wrote:
Hi Kevin.
In the end I uninstalled Ruby 1.9.2 and installed version 1.9.1 and the
problem went away.
Kind Regards
Steve
--
when displayed using
- target.errors.full_messages.each do |msg
%li= msg
I get obviously displayed :
3 errors
Email can't be blank
Password can't be blank
Agreement status : You must acknowledge that you agree to our Terms of
Use and Privacy Policy and hat you are over 14 years old.
I have a few outlier cases of ruby files used by my rails app and am
trying to decide where to put them.
1. Models that are not ActiveRecord models. Suggestion: app/models
2. Utility classes which are invoked by the application during normal
operation. Not sure between app/utility - on the
Erol,
Thank you for the reply.
This will work, but is there a way to do this search without adding
another association?
I am just trying to learn the capabilities of ActiveRecord.
Let me re-state the problem: I either already have the parent object,
or know enough of it's attributes to find the
Colin Law wrote in post #955070:
On 18 October 2010 04:38, Marnen Laibow-Koser li...@ruby-forum.com
wrote:
Rahul J. wrote in post #954924:
[...]
Also i am not preffering associations to get the complete user field, as
its not being needed.
Then you are most likely being stupid.
I think
Steve Mills wrote in post #955083:
Hi Kevin.
In the end I uninstalled Ruby 1.9.2 and installed version 1.9.1 and the
problem went away.
Kind Regards
Steve
Bad idea. Ruby 1.9.1 is not supposed to work reliably with Rails. Use
1.9.2 or 1.8.7.
Best,
--
Marnen Laibow-Koser
Michal Burak wrote in post #954952:
The speed is the same with or without RadRails.
What operating system are you using? I have heard this complaint many
times with certain Windows versions (may all versions).
If you're on some form of UNIX/Linux based system then your problem is
likely
totally lost.
--
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, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to
Bhupendra Mishra wrote in post #954914:
Please share tutorial/blog/documentation best ever any one find for
RSpec.
The best tutorial on RSpec Cucumber that I know of is:
http://pragprog.com/titles/achbd/the-rspec-book
Written by the people who created RSpec, with input from Dan North
Ok, let's back up a bit.
For now just do the apache rewrite as I mentioned above. I think Fred is
right that you need to use ^/$ rather than ^.*$ so your rule would look
like
RewriteRule ^/$ apartment-marie.com/properties/2/$1 [R]
I think that's it.
--
Posted via http://www.ruby-forum.com/.
Are these two competing gems?
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-t...@googlegroups.com.
To unsubscribe from this group, send email to
Thanks for bearing with me.
That one didn't work - close but it gave me a double rendering of the
apartment-marie.com bit, something like this...
apartment-marie.com/apartment-marie.com/properties bla... so I edited
like so (here's the real file and it's live if it helps)..
This is much
+1 - copying from the instant rails download link to ruby/bin worked for
me:
Rails 3.0.1
Ruby 1.8.7 (and Ruby 1.9.2, works on both)
MySQL 5.5 x64
Windows 7 x64
NetBeans IDE
Thanks!
Another Jason S.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are
So taking it a step on I figure I need to work on a few things...
need to make sure www versions all operate ok.
need to make sure that when I add another domain, that works to.
http://chaletcordee.co.uk/properties/1/comments
should be
http://chaletcordee.co.uk/comments
guess this is the rails
Pito Salas wrote in post #955126:
I have a few outlier cases of ruby files used by my rails app and am
trying to decide where to put them.
1. Models that are not ActiveRecord models. Suggestion: app/models
There is a pernicious assumption among many Rails developers that models
have to be
Colin Law wrote in post #954800:
On 16 October 2010 13:47, Max Reznichenko li...@ruby-forum.com wrote:
belongs_to :model_a
#Model A definition
has_many :model_b
--has_many :model_c, :through = :model_b
I have not tried it but can you then say
has_many :model_d, :through - :model_c
If
Although using ROR for a long time There is so much I do not know
so forgive me if I am wrong.
As I am re-writing my website for ROR 3.0, I went to ROR 3.0.1
documentation below to learn about Ajax:-
http://api.rubyonrails.org/classes/ActionView/Helpers/PrototypeHelper.html
There it says to
Colin Law wrote in post #954895:
On 17 October 2010 06:17, Evanoshki Brataslavainskinski
li...@ruby-forum.com wrote:
Luke Cowell wrote in post #954878:
Did you try Michael's suggestion of adding this to your controller?
helper_method :find_first_in_group
This probably isn't the best
You can use dynamic finders:
Child.find_by_parent_id_and_name(parent.id, Timmy)
But then again, if you already have the parent object, the common practice
is to setup the children association and get the child using it:
parent.children.find_by_name(Timmy)
Which IMO is more readable than the
Hoca wrote in post #955056:
Hi,
I'm running Rails 2.3.5 Ruby 1.8.7 on Windows XP.
Why on earth are you doing Rails development on Windows? At least get a
*nix VM.
I have two partials:
1. File app\views\warehousing\_index.html.erb has
.
%=
I'm trying to upgrade an application to Rails 3 and I found a difference
in the way helpers are loaded. I want to override a method based on
the current controller but it now seems that all helpers are loaded.
I've broken it down to a simple example. I have a test app with 2
controllers - books
http://guides.rubyonrails.org/routing.html#adding-more-restful-actions
Tried it, same error. On the controller I even tried...
resources :appointments do
get 'history' = :history
end
get appointments/history
--
Posted via http://www.ruby-forum.com/.
--
You received this message
That's because Rails 3 implies helper :all.
https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/5348-visibility-of-helpers-seems-all-wrong
On Mon, Oct 18, 2010 at 11:57 PM, Christopher G. li...@ruby-forum.comwrote:
I'm trying to upgrade an application to Rails 3 and I found a
Currently, I have this on the application controller...
def company_name
User.find_by_id(session[:user_id]).account.name
end
So then in each controller I have to add this, which is not very DRY.
The @company_id needs to be used in almost every page and it's accessed
on the
Got it, I think when I restarted the server, it didn't see the changes
or something.
ROUTES
resources :appointments do
collection do
get 'history' = 'appointments#index'
end
end
CONTROLLER
def index
if request.request_uri=='/appointments/history'
#past
Leonel *.* wrote in post #955167:
Currently, I have this on the application controller...
def company_name
User.find_by_id(session[:user_id]).account.name
end
So then in each controller I have to add this, which is not very DRY.
The @company_id needs to be used in almost every page
IMPROVED.
--
ROUTES
resources :appointments do
collection do
get 'history' = 'appointments#index'
end
end
--
CONTROLLER
def index
if request.request_uri==history_appointments_path
#past appointments
On 18 October 2010 17:24, Leonel *.* li...@ruby-forum.com wrote:
Currently, I have this on the application controller...
def company_name
User.find_by_id(session[:user_id]).account.name
end
So then in each controller I have to add this, which is not very DRY.
The @company_id needs to
I'm half way there then?
Need to handle the rest on the rails side - via my routes.rb file?
Will this approach work?
--
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, send
Still same error...
APPLICATION CONTROLLER
@company_id = company_id
def company_id
output_id = User.find_by_id(session[:user_id]).account.id
end
ERROR
Routing Error
undefined local variable or method `company_id' for
ApplicationController:Class
Why would it say the method is
On Oct 18, 4:21 pm, Alex Katebi alex.kat...@gmail.com wrote:
Are these two competing gems?
They're different in my opinion. Httparty make making http requests
nice, whereas mechanize is more about interacting with web pages (so
it has a bunch of features to do with cookies, filling out forms
What I'm trying to do seems easy, but I've been trying to get it right
for 3 days now, and am at my wits end.
What I have:
2 tables + 1 join table.
Subscribers, Cities, and Cities_Subscribers
Form looks like this:
TEXTBOX - EMAIL
CHECKBOXES - CITIES
SUBMIT
My models are like so:
class
Hi folks,
Because life happened I had to put down rails/web development for a
while. I am starting a new project on rails 3 and noticed that
mongrel isn't even included in the Gemfile which is required in order
to get mongrel to load. What is the school of thought in rails 3 wrt
to a
Hello,
I am not a programmer but I would like to learn and develop more
complex websites than the ones I have done in the past. I will not
learn for the pleasure of learning, but I will do it as I need to
develop my website.
I am pretty good with HTML, and I know a bit of PHP and MySQL.
I was
Hi,
I'm new to Rails and already did some stuff with ActiveRecord
associations but I cannot do one thing:
I've got a
===
class Paragraph ActiveRecord::Base
end
===
And I want each Paragraph to contain a list of words (each word is
simply a String). I want to have a table with all Paragraphs
I want to upgrade rails version in InstantRails-2.0 also
from 2.0.2 to rails 2.3.8
but I am facing problem.
when I write this command in InstantRails console :
D:\InstantRails\InstantRails-2.0-win\rails_appsgem update rails
--include-dependencies
It gives me this error.
ERROR: While
yes, it should work. Look like you may need to add single resources
along with the nested ones. Not entirely sure if you can do this
though...
Luis
--
http://www.saffie.ca
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google
Marnen Laibow-Koser wrote in post #955146:
Utility classes (that are not models) go in lib. I don't see what the
utility directory inside there gains you; lib is already utilities.
To me lib/ implies a library used by the application. not part of the
application itself, which is why I
Anyone else comment as to if this combination of apache rewrites and
rails routing will play nicely together. I'll try it of course just
imagine that it may have been done before by somebody.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to
Marnen Laibow-Koser wrote in post #955129:
Bad idea. Ruby 1.9.1 is not supposed to work reliably with Rails. Use
1.9.2 or 1.8.7.
1.9.2 doesn't work. 1.8.7 is too old to work with the tools I'm using.
So far 1.9.1 is working with no problems.
Like the person before me, I tried to get help
Conrad,
I did look at below links somehow it's not working on windows
platform. I think the plug-in is for MAC OS. Meantime do you have any
high level comparasion, any other links or manual steps which I
perform. May be that way it will help me to understand what exactly
the plug-in is doing.
On Mon, Oct 18, 2010 at 10:25 AM, Pito Salas li...@ruby-forum.com wrote:
Marnen Laibow-Koser wrote in post #955146:
Utility classes (that are not models) go in lib. I don't see what the
utility directory inside there gains you; lib is already utilities.
To me lib/ implies a library used by
Leonel *.* wrote in post #955184:
Still same error...
APPLICATION CONTROLLER
@company_id = company_id
def company_id
output_id = User.find_by_id(session[:user_id]).account.id
end
ERROR
Routing Error
undefined local variable or method `company_id' for
Hajer Mohammed wrote in post #955190:
I want to upgrade rails version in InstantRails-2.0 also
from 2.0.2 to rails 2.3.8
but I am facing problem.
when I write this command in InstantRails console :
D:\InstantRails\InstantRails-2.0-win\rails_appsgem update rails
--include-dependencies
dbush wrote in post #955185:
Hi folks,
Because life happened I had to put down rails/web development for a
while. I am starting a new project on rails 3 and noticed that
mongrel isn't even included in the Gemfile which is required in order
to get mongrel to load. What is the school of
Steve Mills wrote in post #955200:
[...]
There are patches available to fix it but the authors assume that we all
know how to apply a patch whereas newbies like myself haven't a clue -
yes we can download the patch, but we don't know how to apply it.
Any hints? :)
Learn how to apply a patch.
Marnen Laibow-Koser wrote in post #955209:
Steve Mills wrote in post #955200:
[...]
If you can point me to a patch you've found, I may be
able to be of more help.
Thanks - I'm working both in Windows and Ubuntu - but Windows primarily
because that's where my Development Environment is -
P.S. I should also have mentioned I'm working with RubyMine to learn how
to build Rails web apps.
--
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, send email to
Steve Mills wrote in post #955213:
Marnen Laibow-Koser wrote in post #955209:
Steve Mills wrote in post #955200:
[...]
If you can point me to a patch you've found, I may be
able to be of more help.
Thanks - I'm working both in Windows and Ubuntu - but Windows primarily
because that's where
Steve Mills wrote in post #955214:
P.S. I should also have mentioned I'm working with RubyMine to learn how
to build Rails web apps.
Drop RubyMine, at least for now. You can go back to it later, but you
should absolutely not be using an IDE for learning Rails. Just work
with a good text
Etilyeti wrote in post #955186:
Hello,
I am not a programmer but I would like to learn and develop more
complex websites than the ones I have done in the past. I will not
learn for the pleasure of learning, but I will do it as I need to
develop my website.
I am pretty good with HTML, and I
On Mon, Oct 18, 2010 at 1:54 PM, Marnen Laibow-Koser
li...@ruby-forum.com wrote:
Rails isn't a language.
I consider Rails to be a domain specific language.
--
Greg Donald
destiney.com | gregdonald.com
--
You received this message because you are subscribed to the Google Groups Ruby
on
The content was...
diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb
index 266d717..0e9f39a 100755
--- a/tool/rbinstall.rb
+++ b/tool/rbinstall.rb
@@ -515,7 +515,7 @@ install?(:ext, :comm, :gem) do
version = open(src) {|f| f.find {|s| /^\s*\w*VERSION\s*=(?!=)/ =~
s}} or next
version =
Greg Donald wrote in post #955221:
On Mon, Oct 18, 2010 at 1:54 PM, Marnen Laibow-Koser
li...@ruby-forum.com wrote:
Rails isn't a language.
I consider Rails to be a domain specific language.
Parts of it are, but I think it's limiting to consider the entire
framework to be. At least the way
I tried to simplify to find the root of the problem, but this doesn't
work either!
APPLICATION CONTROLLER
@company_id = 1;
VIEW
%= @company_id % returns nothing
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups Ruby
on
Steve Mills wrote in post #955220:
The content was...
diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb
index 266d717..0e9f39a 100755
--- a/tool/rbinstall.rb
+++ b/tool/rbinstall.rb
@@ -515,7 +515,7 @@ install?(:ext, :comm, :gem) do
version = open(src) {|f| f.find {|s|
Any Help ?
Are you behind a firewall or proxy? It looks like it can't get to the
gem server...
No, I switched off the firewall, this problem appeared to me once, and I
have solved by the following
1- I downloaded RubyGems again from this link
http://rubyonrails.org/download
2- Then I
Unfortunately, I'm such a newbie to this, I don't have git, don't see
why I need it when I use subversion for version control, and it doesn't
get automatically installed with Ruby.
The information that led me to this patch was Ruby's inability to
recognise that Rake 0.8.7 had been installed.
You need to gain a better understanding of what belongs to the class and
what belongs to the instance.
True, will do.
Although I found a different solution.
APPLICATION HELPER
def company_id
User.find_by_id(session[:user_id]).account.id
end
--
Posted via http://www.ruby-forum.com/.
--
Steve Mills wrote in post #955228:
Unfortunately, I'm such a newbie to this, I don't have git,
Then get it.
don't see
why I need it when I use subversion for version control,
Because it's a better VCS than Subversion is. Subversion uses a less
powerful paradigm (centralized, whereas Git is
[Repost of something that apparently got eaten.]
Marnen Laibow-Koser wrote in post #955224:
Steve Mills wrote in post #955220:
The content was...
diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb
index 266d717..0e9f39a 100755
--- a/tool/rbinstall.rb
+++ b/tool/rbinstall.rb
@@ -515,7
in case someone else has similar problems, the code that I got working
is:
downloading:
--
controller: datafiles_controller
def download
@datafile = Datafile.find(params[:id])
send_file('/var/www/pub.website.com/file_uploads/'+
Hi Marnen. I'm never combative or hostile - that's not my nature.
However, when I've got a huge investment in one tool, I need to be
convinced before switching horses because it always results in a lot of
work to effectively get to where I already was with my favoured tool,
and my time is
I've just upgraded from rails 2 to 3 and got some problems with
the link_to method!
A line like this:
%= link_to Lab, :action = :showlab, :remote = true %
creates a html link like this:
a href=controller/showlab?remote=trueLab/a
and not like this:
a href=controller/showlab
Is there anything wrong with the link_to syntax/line?
Yes. The link_to method has the following signatures:
link_to(body, url_options = {}, html_options = {})
link_to(body, url, html_options = {})
When you specify it like you have, Ruby thinks both :action
and :remote are part of the
I am converting my app from Rails 2 to Rails 3 and I'm using JSON to
parse text. Now, I never had to require anything in Rails 2, so I
suppose JSON was built in. However, Rails 3 can't find it by default
(uninitialized constant), so seem to have to manually require it. Any
ideas where should I
Tim Shaffer wrote in post #955238:
You need to explicitly separate the url_options hash and the
html_options has for it to work:
%= link_to Lab, { :action = :showlab }, :remote = true %
Oh, great. That's it!
Everything works now.
Thanks a lot.
--
Posted via http://www.ruby-forum.com/.
--
If you don't have a great deal of programming experience ruby will take some
time to ramp up on. Rails is great but also has ramp up time and will
require dedication as well. I also feel I should say that its not just
about programming. Anyone can learn the constructs of an programming
language
I did but didn't see anything that really answered my question so I decided
to post.
Cheers,
Dave
On Mon, Oct 18, 2010 at 2:41 PM, Marnen Laibow-Koser
li...@ruby-forum.comwrote:
dbush wrote in post #955185:
Hi folks,
Because life happened I had to put down rails/web development for a
If you're going to work with ruby on rails on windows its going to be
painful afik, some plug-ins just don't work, if you're using linux or
mac things will just work.
--
Kind Regards,
Rajinder Yadav | http://DevMentor.org | Do Good! - Share Freely
--
You received this message because you are
Rails is easier for non programmer than it is for professional programmer,
mainly because everything its so hard that programmers that come from other
languages keep trying to make easy things the hard and so the get stuck
often.
--
You received this message because you are subscribed to the
@steve
Keep learning with rubymine, the thing is once you learn how easy rails is
you will see that IDEs just get in the way , but you have to learn that by
your self we cant tell you that, eventually you will see that for rails the
only thing that a IDE is good for is to search for file quickly.
1 - 100 of 131 matches
Mail list logo