Hey guys,
As most of you know, Rails 3.1 introduces query caching for
ActiveRecord. Great change all-in-all, but for those of us with IT
department mandates for using MySQL (yeah, yeah, I know...), it's kind
of a mixed bag.
I need to disable query caching in a project I'm building based on
3.1.
What is the correct way to configure jQuery UI with Rails 3.1
application?
Bharat
--
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-talk@googlegrou
Yep, it's installed (I've used it on the server before). I'm not sure
but I think this has something to do with RVM changing all of the
application paths but I don't really know how to diagnose this.
On Aug 6, 4:33 am, Frederick Cheung
wrote:
> On Aug 6, 12:59 am, jjb123 wrote:> Hey everyone,
>
Mark,
Here are some question I would raise in designing a domain model for an app
like this:
- Can students and or instructors participate and or coordinate more than one
course simultaneously?
- Do you want to retain record of past participation?
The reason why I pointed out the role patte
Frederick,
I would want to be able to see what students are being taught be what
instructor. And yes I would want to be able to know what the course
the student is taking. So from my current setup are you saying I
wouldn't get that? Or would I get that if I used a :through
association?
I'm sort o
I too am trying to do this. It seems like something that should be
easily configurable. establish_connection :blah
seems to work fine in the model,
however causes problems in the migration used to create that model
ActiveRecord::Base.establish_connection :blah
The migration completes successful
> Well, you lied. You didn't have a Date, you had a String.
I'm not saying that I know what I'm talking about :)
I'm newbie but I didn't lie.
What I said was:
"...date as a value (taken from
datetime_select helper)"
if it was a String then datetime_select returns a string, or Dates are
Strin
Hey everybody,
I'm new on RoR and I was wondering with sb could help me.
I have one page that interacts with a lot of controllers and actions,
so I need to create many forms(one per action).
Example: In this page I send message to user, make one vote in one
post, remove one post. So I create one ac
1. THE STORY & MISSION OF OUR COMPANY
At Lookbook, we love fashion, shopping and trends. We believe that
life should be lived fully and that all of us should strive to look
our best, without spending too much time doing so. We are creating a
platform to simplify your dressing-up process without re
If you have tried all the above and it still didn't work, try the
instructions on THIS page:
http://lightyearsoftware.com/2011/02/mysql-5-5-on-mac-os-x/comment-page-1/#comment-33204
It worked for me! (Don't forget to use the "source" command or restart
your terminal session after modifying your b
Jarek Plonski wrote in post #1015315:
>> starts_at = Time.parse( params[:starts_at] )
>> puts starts_at.year
>
> Colin, this is exactly what I needed. Thank you! :)
>
Well, you lied. You didn't have a Date, you had a String.
--
Posted via http://www.ruby-forum.com/.
--
You received this messa
> starts_at = Time.parse( params[:starts_at] )
> puts starts_at.year
Colin, this is exactly what I needed. Thank you! :)
--
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, s
On 6 August 2011 20:50, Jarek Plonski wrote:
>> Time/date objects have methods like year, month, day etc. which return
>> the individual components
>>
>
> Well I know that but, can you, please, tell how to use those methods in
> my example?
I don't know the format of you params string but you can
> Time/date objects have methods like year, month, day etc. which return
> the individual components
>
Well I know that but, can you, please, tell how to use those methods in
my example?
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the G
On 6 August 2011 15:59, Rahul Rai wrote:
> I have struggled a lot to run my first rails app on windows
If you have any choice at all then don't use windows for rails apps.
Life will be much simpler if you can move to a Linux system such as
Ubuntu. The learning curve time will be recovered very
On 6 August 2011 13:48, Frederick Cheung wrote:
>
>
> On Aug 6, 12:16 pm, gatopardo wrote:
>> I am still confused by rails 3 new rules, and knowing so little about
>> it,I want some help on a particular problem: inflection when creating
>> models:
>> what can I do in order to get rails generate
On Aug 6, 7:20 pm, Jarek Plonski wrote:
> I'm passing hash (called 'params') to a method. Some keys (one of them
> is called 'starts_at') in that hash have date as a value (taken from
> datetime_select helper). I want to access the date elements like date
> only or time only but I'm just out of
Thank you
I misspelled *has_many :status_messages*
thank you very much
On Sat, Aug 6, 2011 at 2:40 PM, tudor cornea wrote:
> Try:
>
> has_many :StatueMessages instead of:
>
> * has_many :statue_messages*
>
>
> On Sat, Aug 6, 2011 at 1:58 PM, Frederick Cheung <
> frederick.che...@gmail.com> w
Try:
has_many :StatueMessages instead of:
* has_many :statue_messages*
On Sat, Aug 6, 2011 at 1:58 PM, Frederick Cheung wrote:
>
>
> On Aug 6, 11:21 am, Sayuj Othayoth wrote:
> > Hi,
> >
> > My models:
> >
> > #StatusMessage model
> > *class StatusMessage < ActiveRecord::Base
> > belongs_
Are there tutorials that walk you through making a photo album using
RoR?
Thanks.
--
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-talk@googlegro
I'm passing hash (called 'params') to a method. Some keys (one of them
is called 'starts_at') in that hash have date as a value (taken from
datetime_select helper). I want to access the date elements like date
only or time only but I'm just out of ideas.
def self.new_meeting(params)
str = pa
On Aug 6, 2011, at 1:22 PM, Pepe Sanchez wrote:
Walter,
So if I understand correctly new_ticket_path, edit_ticket_path, ticket
are like constants that RoR assigns to them specific values.
If I want to create a new link on my RoR Application to a new page
called for example "myblog", and add i
Walter,
So if I understand correctly new_ticket_path, edit_ticket_path, ticket
are like constants that RoR assigns to them specific values.
If I want to create a new link on my RoR Application to a new page
called for example "myblog", and add it to the index page, which will be
the right synt
On Aug 6, 2011, at 12:46 PM, Pepe Sanchez wrote:
Hi all
I am working on the first application from the book "Head First
Rails"
called "tickets". What I do not understand is where the variable
"new_ticket_path" gets populated in the view index.html.erb
<%= link_to 'New Ticket', new_ticket_
Hi all
I am working on the first application from the book "Head First Rails"
called "tickets". What I do not understand is where the variable
"new_ticket_path" gets populated in the view index.html.erb
<%= link_to 'New Ticket', new_ticket_path %>
Please advise
--
Posted via http://www.ruby-
Thanks a lot Federick
On Aug 6, 3:57 pm, Frederick Cheung
wrote:
> On Aug 6, 11:25 am, Karthikeyan wrote:
>
> > Hello all,
>
> > I developed an app using Rails 3.1 and uploaded it to heroku. When I
> > typed rake db:migrate , I got the following error:
>
> > Could not find a JavaScript runtime.
I have struggled a lot to run my first rails app on windows
None of the tutorials explain in as simple as this one
http://www.javapassion.com/handsonlabs/rails_basics/
could run hello world
but the rest are not free
how to get them
?
--
You received this message because you are subscribed to
On Aug 5, 3:33 pm, Dave wrote:
> Hello all,
>
> I'm new to ruby on rails, been dealign with LAMP my entire carrier and
> have decided to take the dive and learn ruby. To start this off I
> decided I wanted to install ruby on my Window 7 PC at home with WAMP
> and learn from there. So I followed th
:) It doesn't actually say that. I figured it was easier to change the text
to represent an easier concept than the actual app.
I did discover that i need to pass the arguments in this way though. Rather
than specifying :action_id=> id as a parameter, I needed to add it to the
link.
Eg user_actio
I'm in Melbourne, Victoria, Australia.
Whereabouts are you?
On Aug 6, 9:52 pm, "gojinj...@gmail.com" wrote:
> We are looking for a rails developer to join our startup. Some
> experience with SASS and MySQL is prefered but not a requirement. Our
> startup is working on a revolutionary platform fo
Sayuj,
Are you using JQuery? In that case, you can try "rails g
jquery:install". I had the same problem a few days ago. It's an issue
related to DELETE actions.
On 6 ago, 06:28, Sayuj Othayoth wrote:
> Hi comrades,
>
> I'm using devise sign_in and sign_up urls are workin
>
> but, when I try the
On Aug 6, 12:16 pm, gatopardo wrote:
> I am still confused by rails 3 new rules, and knowing so little about
> it,I want some help on a particular problem: inflection when creating
> models:
> what can I do in order to get rails generate model using words ending
> in 'a', so that the plural gen
We are looking for a rails developer to join our startup. Some
experience with SASS and MySQL is prefered but not a requirement. Our
startup is working on a revolutionary platform for health and fitness
and a passion for getting healthier and fit definitely helps. If you
are looking to join a rebel
I am still confused by rails 3 new rules, and knowing so little about
it,I want some help on a particular problem: inflection when creating
models:
what can I do in order to get rails generate model using words ending
in 'a', so that the plural generated add an 's'
If I edit config/initializer
On Aug 4, 7:32 pm, Aashish Kiran wrote:
> ?> p.preview.url
> => "/system/previews/3/original/FTpreview.zip?1312375624"
>
> ?> file=p.preview.url
> => "/system/previews/3/original/FTpreview.zip?1312375624"
url returns the url at which the file is available when accessed via
the web server - as
On Aug 3, 7:08 pm, Barney wrote:
> I've installed the gem "meta_where" (and it reported back:
> "Succeeded") but when I use the example in a search method of a
> controller:
>
> Person.where(:some_field.matches => '%something%')
>
> there is an error that it doesn't know the method 'matches', so
On Aug 6, 11:21 am, Sayuj Othayoth wrote:
> Hi,
>
> My models:
>
> #StatusMessage model
> *class StatusMessage < ActiveRecord::Base
> belongs_to :users
> default_scope :order => "created_at DESC"
> end*
>
> #User Model
> *class User < ActiveRecord::Base
> has_many :statue_messages
> end
>
On Aug 6, 11:25 am, Karthikeyan wrote:
> Hello all,
>
> I developed an app using Rails 3.1 and uploaded it to heroku. When I
> typed rake db:migrate , I got the following error:
>
> Could not find a JavaScript runtime. Seehttps://github.com/sstephenson/execjs
> for a list of available runtimes.
Thanks..
On Sat, Aug 6, 2011 at 3:45 PM, Conrad Taylor wrote:
> On Sat, Aug 6, 2011 at 2:52 AM, john paul wrote:
>
>> Hi sir,
>>
>> I have create one rails application ,am creating user form and
>> using the session (logged on) and (logged out) , i dont know how its
>> used am newipe in r
You must ask twitter for this. Have you gone through their API?
On Aug 6, 12:41 pm, Abhishek shukla wrote:
> Hello,
>
> I am providing a facility where a user can tweet a content along with the
> url from my site(And it's working fine.), but Once after tweeting from my
> site no response I am get
Hello all,
I developed an app using Rails 3.1 and uploaded it to heroku. When I
typed rake db:migrate , I got the following error:
Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs
for a list of available runtimes.
Does heroku support Rails 3.1? They seem to have no
Hi,
My models:
#StatusMessage model
*class StatusMessage < ActiveRecord::Base
belongs_to :users
default_scope :order => "created_at DESC"
end*
#User Model
*class User < ActiveRecord::Base
has_many :statue_messages
end
*In controller I want to join these two tables.
When I use :
*@status
On Sat, Aug 6, 2011 at 2:52 AM, john paul wrote:
> Hi sir,
>
> I have create one rails application ,am creating user form and
> using the session (logged on) and (logged out) , i dont know how its
> used am newipe in rails pls help
>
> regards,
> john
>
>
John, I would recommend reading the
Hi sir,
I have create one rails application ,am creating user form and
using the session (logged on) and (logged out) , i dont know how its
used am newipe in rails pls help
regards,
john
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed
I think having the flexibility of having a student and or instructor assignable
to different courses may come in handy. We may want to have records of past
course participants. That's why a through association on a role may work out
best.
On Aug 6, 2011, at 2:42 AM, Frederick Cheung wrote:
>
On Sat, Aug 6, 2011 at 2:21 AM, depassion wrote:
> so when attempting to destroy a record i get this in the server log
> output:
>
> AREL (0.4ms) DELETE FROM "items" WHERE "items"."id" = 39
> Started GET "/items/20" for 127.0.0.1 at 2011-08-06 10:59:27 +0200
> AbstractController::ActionNotFound
On Aug 6, 9:07 am, MC wrote:
> First crack at an app. I have a friend with a private school that I'm
> trying to create a scheduling system for.
>
> So I have Coordinators creating school courses. Once the course is
> created the coordinator can assign multiple instructors, and then
> assign stu
You may want to consider using a :through association. The coordinator may be
better defined as a role type. Within a course people have a role: coordinator
or student. The relationship between people and the course is through the role.
Keeping the role object will indexing on the participants i
Hi comrades,
I'm using devise sign_in and sign_up urls are workin
but, when I try the url: http://localhost:3000/users/sign_out
it generates routing error
No route matches [GET] "/users/sign_out"
How can I fix this?
Thank you,
Sayuj Othayoth
--
You received this message because you are s
so when attempting to destroy a record i get this in the server log
output:
AREL (0.4ms) DELETE FROM "items" WHERE "items"."id" = 39
Started GET "/items/20" for 127.0.0.1 at 2011-08-06 10:59:27 +0200
AbstractController::ActionNotFound (The action 'show' could not be
found for ItemsController):
b
The point is: what did you do to get that output??? OKAY??!
--
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-talk@googlegroups.com.
To unsubscrib
On Aug 6, 12:59 am, jjb123 wrote:
> Hey everyone,
> I'm having an incredibly difficult time getting bundle to work
> properly on my production server.
>
Dumb question: is git installed (and is it a sufficiently recent
version that it can work with https urls) ?
Fred
> My production server setup
Ok. Thanks for your reply. Still I will be trying to get the solution. :)
Thanks,
-Amit
On Sat, Aug 6, 2011 at 1:49 PM, 7stud -- wrote:
> No one can answer that question. Your question is akin to asking: was
> multiplication or division used to get the number 6.
>
> --
> Posted via http://www.
No one can answer that question. Your question is akin to asking: was
multiplication or division used to get the number 6.
--
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
First crack at an app. I have a friend with a private school that I'm
trying to create a scheduling system for.
So I have Coordinators creating school courses. Once the course is
created the coordinator can assign multiple instructors, and then
assign students to the course and instructor. So is t
Thanks for your prompt reply. This is really helpful. But if I want to write
the following output to the text file then how should I achieve this?
*Output:*
Loaded suite simple
Started
.
Finished in 0.203125 seconds.
1 tests, 1 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0
notifica
f = File.open('text.txt', 'w')
old_out = $stdout
$stdout = f
puts 'hello'
puts 'world'
f.close
$stdout = old_out
puts 'goodbye'
--output:--
$ ruby ruby.rb
goodbye
$ cat text.txt
hello
world
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed t
Hello,
I am providing a facility where a user can tweet a content along with the
url from my site(And it's working fine.), but Once after tweeting from my
site no response I am getting from twitter.
My Question is how do my system will know whether user has posted on twitter
or not?
It will be r
Hi,
Could someone suggest me to how to write console output into Text file Ruby?
I want to deal with the console output of the Ruby script. Please tell me
how to do that?
Please help. Thanks in advance.
--
Thanks and Regards,
Amit
--
You received this message because you are subscribed to the
59 matches
Mail list logo